]> granicus.if.org Git - postgresql/commit
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)
commit932dbd1c30d5cba05fe45673873e66c549e91636
treeca0370136c6ff60477acd51a90e9cee2746eeb24
parentf2b8bfb4083ee669c1b4eefb6dba9a45743f8376
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