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:40
Message-ID: 20070821024040.3D65B754259@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:
----
REL7_3_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        varbit.c (r1.26 -> r1.26.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/varbit.c?r1=1.26&r2=1.26.2.1)

pgsql-committers by date

Next:From: Tom LaneDate: 2007-08-21 03:14:36
Subject: pgsql: Fix money type's send/receive functions to conform to recent
Previous:From: Tom LaneDate: 2007-08-21 02:40:33
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