pgsql: Fix potential access-off-the-end-of-memory in varbit_out(): it - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix potential access-off-the-end-of-memory in varbit_out(): it
Date
Msg-id 20070821024033.BE2A2754259@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        varbit.c (r1.37 -> r1.37.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/varbit.c?r1=1.37&r2=1.37.2.1)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix potential access-off-the-end-of-memory in varbit_out(): it
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix potential access-off-the-end-of-memory in varbit_out(): it