pq_getstr didn't handle buffer overrun correctly; it would
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Nov 1998 01:48:42 +0000 (01:48 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Nov 1998 01:48:42 +0000 (01:48 +0000)
commit5e44fa3232d475f722aa2c5b642eba83c5dca0bd
tree067cfd4a706ca18f6ecd58711b66ed164f8198e1
parent88b340069d9a644b5bad36d7819eaad8df4f2524
pq_getstr didn't handle buffer overrun correctly; it would
fail to consume the rest of the input string, and worse it would write
one more byte than it should into the buffer, probably resulting in coredump.
Fortunately there's a correct implementation next door in pqcomprim.c.
src/backend/libpq/pqcomm.c