Re: inet_net_pton() buffer overflow

2021-01-18 Thread Theo Buehler
On Mon, Jan 18, 2021 at 10:59:36AM +0100, Florian Obser wrote: > On Thu, Jan 14, 2021 at 09:34:49AM -0500, Brad House wrote: > > While working on debugging an issue reported in c-ares, I noticed some test > > case failures in inet_net_pton().  I haven't evaluated most of them, however > > one

Re: inet_net_pton() buffer overflow

2021-01-18 Thread Florian Obser
On Thu, Jan 14, 2021 at 09:34:49AM -0500, Brad House wrote: > While working on debugging an issue reported in c-ares, I noticed some test > case failures in inet_net_pton().  I haven't evaluated most of them, however > one stood out: > > ../test/ares-test-internal.cc:150: Failure >  

inet_net_pton() buffer overflow

2021-01-14 Thread Brad House
While working on debugging an issue reported in c-ares, I noticed some test case failures in inet_net_pton().  I haven't evaluated most of them, however one stood out: ../test/ares-test-internal.cc:150: Failure   Expected: -1 To be equal to: inet_net_pton(24,"12:34::ff",,sizeof(a6) - 1)