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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2007-08-21 03:14:36 pgsql: Fix money type's send/receive functions to conform to recent
Previous Message Tom Lane 2007-08-21 02:40:33 pgsql: Fix potential access-off-the-end-of-memory in varbit_out(): it