]> granicus.if.org Git - postgresql/commit
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:58 +0000 (17:16 -0400)
commit7b97dafa2a885b968924604e58e030aebfd96b9f
treef11153d0bc7e9293c9fe630c8d557c56c68c3415
parentbdf39b2c577a107063dfbbe398ff77c5b65ba731
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