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:53 +0000 (17:16 -0400)
commitf66e0fec386754e85edb3355b1d000c99a38f5cb
treefb66bcfdff5312c9cc520a0367502c3611a3c54d
parent23ed284a5dda5286bd91bb601f30e5e6fae478af
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