[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IPv6 problem
From: |
Mark . Burgess |
Subject: |
Re: IPv6 problem |
Date: |
Wed, 7 Dec 2005 17:17:55 +0100 (MET) |
User-agent: |
SquirrelMail/1.4.4 |
Thank you for your patch to my crappy code.
M
> forwarded 334304 address@hidden
> thanks
>
> Hi!
>
> We got a bugreport [1] from one of our Debian Developers with IPv6
> problems:
>
> On Sun, 27 Nov 2005 00:29:15 +0100, Steinar H. Gunderson wrote:
>
>> Look at src/proto.c, IdentifyForVerification():
>>
>> struct sockaddr_in myaddr;
>> (...)
>> case AF_INET6: len = sizeof(struct sockaddr_in6);
>> (...)
>> if (getsockname(sd,(struct sockaddr *)&myaddr,&len) == -1)
>>
>> Now, sizeof(struct sockaddr_in) = 16, sizeof(struct sockaddr_in6) =
>> 28. Increasing the size of myaddr makes the problem go
>> away. (myaddr is on the stack, which explains why regular Valgrind
>> can't find it.)
>
> I've made Steinar H. Gunderson's patch [2] for this problem available,
> so please consider it for inclusion.
>
>
> - Werner
>
> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=334304
> [2] http://skolelinux.no/~werner/100_fix_ipv6_buffer_overrun
>
>
> _______________________________________________
> Bug-cfengine mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-cfengine
>
- IPv6 problem, Morten Werner Olsen, 2005/12/07
- Re: IPv6 problem,
Mark . Burgess <=