]> granicus.if.org Git - postgresql/commit
Fix potential access-off-the-end-of-memory in varbit_out(): it fetched the
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Aug 2007 02:40:18 +0000 (02:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Aug 2007 02:40:18 +0000 (02:40 +0000)
commitbbb7e05c32fb6e1a67dbd3eeaed97c106c277d95
tree4fa3bd148d944693345496c4a8c3b175a7670aeb
parentd8cb5391c21d31de5c56b520ad7e2301c3299d4d
Fix potential access-off-the-end-of-memory in varbit_out(): it fetched the
byte after the last full byte of the bit array, regardless of whether that
byte was part of the valid data or not.  Found by buildfarm testing.
Thanks to Stefan Kaltenbrunner for nailing down the cause.
src/backend/utils/adt/varbit.c