]> 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:06 +0000 (02:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Aug 2007 02:40:06 +0000 (02:40 +0000)
commit1cee06ac02b0f12ba748c341a41cfd7fd1fb5ea9
treeecb392e3ce41871b3a6801ad15d7fe362006ae77
parent25a4a77985a35d771a34befe73181d95c8e662f9
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