pgsql: Fix off-by-one bug in bitncmp(): When comparing a number of bits

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix off-by-one bug in bitncmp(): When comparing a number of bits
Date: 2009-10-08 04:46:21
Message-ID: 20091008044621.A4A91753FB7@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix off-by-one bug in bitncmp(): When comparing a number of bits divisible by
8, bitncmp() may dereference a pointer one byte out of bounds.

Chris Mikkelson (bug #5101)

Modified Files:
--------------
pgsql/src/backend/utils/adt:
network.c (r1.74 -> r1.75)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/network.c?r1=1.74&r2=1.75)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2009-10-08 04:46:30 pgsql: Fix off-by-one bug in bitncmp(): When comparing a number of bits
Previous Message Tom Lane 2009-10-08 04:41:07 pgsql: Update plhandler.sgml to describe validators and inline handlers