Subject: Re: c-ares + IPv6 problem

Re: c-ares + IPv6 problem

From: David Stuart <dstuart_at_counterpath.com>
Date: Mon, 16 May 2011 11:11:22 -0400

Interesting.

I should point out that this string came from another ares file..

On 11-05-16 09:38 AM, Peter Pentchev wrote:
> On Mon, May 16, 2011 at 12:39:33AM +0200, Daniel Stenberg wrote:
>> On Fri, 13 May 2011, David Stuart wrote:
>>
>>> Here's a 7zip file containing the changed files for my patch
>>
>> Please send us (unified) patches for changes as made with diff -u or
>> plain git. Complete replacement files are inconvenient. I've
>> attached the patch to this mail, generated from your files compared
>> to what's in git right now.
> [snip]
>> + const size_t ipv4_size = sizeof("255.255.255.255,") - 1;
>> + const size_t ipv6_size = sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255,") - 1;
>
> Hmm, theoretically speaking, an IPv6 address might be even longer than
> that (think link-local addresses with %ifname at the end). However,
> I stronly doubt somebody would actually *use* something much longer...
> but then again, this last sentence fragment has led to some very, very
> bad buffer overflow exploits over the last twenty years :)
>
> G'luck,
> Peter
>

-- 
David Stuart, CounterPath
Email: dstuart (at) counterpath (dot) com
Phone: (613) 254-8886 x2234  Web: http://www.counterpath.com/
Address: 310 - 350 Terry Fox Drive, Kanata Ontario, K2K 2P5
Received on 2011-05-16