bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IPv6 problem


From: Morten Werner Olsen
Subject: IPv6 problem
Date: Wed, 7 Dec 2005 11:31:14 +0100
User-agent: Mutt/1.5.6i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]