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