Re: BUG #5101: Off-by-one error in bitncmp() in src/backend/utils/adt/network.c

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Chris Mikkelson <cmikk(at)qwest(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5101: Off-by-one error in bitncmp() in src/backend/utils/adt/network.c
Date: 2009-10-08 04:47:25
Message-ID: 4ACD6EDD.6020904@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Chris Mikkelson wrote:
> The following bug has been logged online:
>
> Bug reference: 5101
> Logged by: Chris Mikkelson
> Email address: cmikk(at)qwest(dot)net
> PostgreSQL version: 8.4.1(+earlier)
> Operating system: all
> Description: Off-by-one error in bitncmp() in
> src/backend/utils/adt/network.c
> Details:
>
> When comparing a number of bits divisible by 8, bitncmp() may dereference a
> pointer one byte out
> of bounds.
>
> The following patch against 8.4.1 incorporates the fix made to bitncmp() in
> the BIND source tree:

Thanks, applied.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Herve LEFEBVRE 2009-10-08 08:06:10 BUG #5104: tsearch parser mislead
Previous Message Tom Lane 2009-10-08 03:03:24 Re: BUG #5103: "pg_ctl -w (re)start" fails with custom unix_socket_directory