Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3e873022
Commit
3e873022
authored
Aug 29, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libpq's pqGetnchar() should not return a null-terminated value
anymore. Fix for large objects.
parent
b9b00d5f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-exec.c
+2
-1
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-misc.c
+4
-5
src/tools/RELEASE_CHANGES
src/tools/RELEASE_CHANGES
+2
-0
No files found.
src/interfaces/libpq/fe-exec.c
View file @
3e873022
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.6
2 1998/08/17 03:50:35 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.6
3 1998/08/29 02:09:24 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -612,6 +612,7 @@ getAnotherTuple(PGconn *conn, int binary)
if
(
vlen
>
0
)
if
(
pqGetnchar
((
char
*
)
(
tup
[
i
].
value
),
vlen
,
conn
))
return
EOF
;
/* we have to terminate this ourselves */
tup
[
i
].
value
[
vlen
]
=
'\0'
;
}
/* advance the bitmap stuff */
...
...
src/interfaces/libpq/fe-misc.c
View file @
3e873022
...
...
@@ -24,7 +24,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.1
8 1998/08/17 03:50:38 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.1
9 1998/08/29 02:09:25 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -160,8 +160,7 @@ pqPuts(const char *s, PGconn *conn)
/* --------------------------------------------------------------------- */
/* pqGetnchar:
get a string of exactly len bytes in buffer s (which must be 1 byte
longer) and terminate it with a '\0'.
get a string of exactly len bytes in buffer s, no null termination
*/
int
pqGetnchar
(
char
*
s
,
int
len
,
PGconn
*
conn
)
...
...
@@ -170,7 +169,7 @@ pqGetnchar(char *s, int len, PGconn *conn)
return
EOF
;
memcpy
(
s
,
conn
->
inBuffer
+
conn
->
inCursor
,
len
);
s
[
len
]
=
'\0'
;
/* no terminating null */
conn
->
inCursor
+=
len
;
...
...
src/tools/RELEASE_CHANGES
View file @
3e873022
...
...
@@ -11,3 +11,5 @@ update include/version.h after release
update backend/parser/scan.c and gram.c so flex/bison not necessary
update pgaccess
update odbc
update doc/src/sgml/release.sgml
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment