Fix validation of overly-long IPv6 addresses.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Jun 2016 21:16:32 +0000 (17:16 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Jun 2016 21:16:40 +0000 (17:16 -0400)
commita41b14f94a44c1738356719f46b330372228ee4e
treeba3fc65e05445c0dbd2be9c140cfd84e13e26b7e
parent4f5995dd983db31bce347411c16ecc7319a2d9af
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>
src/backend/utils/adt/inet_net_pton.c