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