Fix validation of overly-long IPv6 addresses.
authorTom Lane <[email protected]>
Thu, 16 Jun 2016 21:16:32 +0000 (17:16 -0400)
committerTom Lane <[email protected]>
Thu, 16 Jun 2016 21:16:48 +0000 (17:16 -0400)
commit519445ba26848b7c88572b2b614b104dccb3153a
treeec9651582c2c005ba922f7bc9dee2cd5cf19976c
parent29987b2e1f8cfb9921ffd33c0d0e1a5f53a090b4
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[email protected]>
src/backend/utils/adt/inet_net_pton.c