pgsql: Fix validation of overly-long IPv6 addresses.

Lists: pgsql-committers
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix validation of overly-long IPv6 addresses.
Date: 2016-06-16 21:17:21
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-committers

Fix validation of overly-long IPv6 addresses.

The inet/cidr types sometimes failed to reject IPv6 inputs with too many
colon-separated fields, instead translating them to '::/0'. This is the
result of a thinko in the original ISC code that seems to be as yet
unreported elsewhere. Per bug #14198 from Stefan Kaltenbrunner.

Report: <20160616182222(dot)5798(dot)959(at)wrigleys(dot)postgresql(dot)org>

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2a8b5d2105fdb7d34b4a5911e6a4f5a39defac3f

Modified Files
--------------
src/backend/utils/adt/inet_net_pton.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)