]> 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:47:42 +0000 (01:47 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Nov 1998 01:47:42 +0000 (01:47 +0000)
commit9e0e148a83c5348b4b72b855d3715c7155301f60
tree50a8c68573a5b6f20e79d2f906b39a7851764c9d
parente50feea8d563da50745f08fbd5e801a903da567d
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