Re: BUG #14198: IPv6 address validation broken

From: Torsten Zuehlsdorff <mailinglists(at)toco-domains(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14198: IPv6 address validation broken
Date: 2016-06-17 13:18:48
Message-ID: f646b2fd-2aa3-655b-cda8-c15b1c439226@toco-domains.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 16.06.2016 23:05, Tom Lane wrote:
> stefan(at)kaltenbrunner(dot)cc writes:
>> IPv6 address validation seems to be a "tad" broken in all current
>> releases:
>
> Hmm, looks like we need this at inet_net_pton.c:499:
>
> else if (*src == '\0')
> goto enoent;
> if (tp + NS_INT16SZ > endp)
> - return (0);
> + goto enoent;
> *tp++ = (u_char) (val >> 8) & 0xff;
> *tp++ = (u_char) val & 0xff;
> saw_xdigit = 0;
>
> A bit of googling suggests that this is equally broken in assorted
> BSD distributions, which is likely where we got the code from
> originally. I wonder who we can report it to?

For FreeBSD there is a bugtracker:
https://bugs.freebsd.org/bugzilla/enter_bug.cgi

If you are unsure what to fill in, i can do this for you.

Greetings,
Torsten

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Martín Marqués 2016-06-17 13:56:16 Re: pg_dump doesn't dump new objects created in schemas from extensions
Previous Message John R Pierce 2016-06-17 08:04:26 Re: BUG #14197: ERROR: character with byte sequence 0x81 in encoding "WIN1252" has no equivalent in encoding "UTF8"