]> git.ipfire.org Git - thirdparty/postgresql.git/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:12 +0000 (02:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Aug 2007 02:40:12 +0000 (02:40 +0000)
commitc40f60db3f8cc482b91be9a641ef69ff58666070
tree032c829d92f81e596f70b75314a655c3ac285847
parent37b57f118663d33583454ea7b01fc6db42deb219
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