Fix validation of overly-long IPv6 addresses.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f66e0fec386754e85edb3355b1d000c99a38f5cb
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-06-16T21:16:53Z
Releases: 9.2.18
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.5798.959@wrigleys.postgresql.org>

Files

PathChange+/−
src/backend/utils/adt/inet_net_pton.c modified +1 −1