Skip site navigation (1) Skip section navigation (2)

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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix potential access-off-the-end-of-memory in varbit_out(): it
Date: 2007-08-21 02:40:12
Message-ID: 20070821024012.9855D754259@cvs.postgresql.org (view raw or flat)
Thread:
Lists: 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:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        varbit.c (r1.50 -> r1.50.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/varbit.c?r1=1.50&r2=1.50.2.1)

pgsql-committers by date

Next:From: Tom LaneDate: 2007-08-21 02:40:19
Subject: pgsql: Fix potential access-off-the-end-of-memory in varbit_out(): it
Previous:From: Tom LaneDate: 2007-08-21 02:40:06
Subject: pgsql: Fix potential access-off-the-end-of-memory in varbit_out(): it

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group