]> 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:44 +0000 (17:16 -0400)
commit2a8b5d2105fdb7d34b4a5911e6a4f5a39defac3f
treeb9005d6a0c370d792b74effab2328aa451c460df
parente542bfe61d3a9f96c4ffb8d2046fe31eb86fcd07
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