Hi
Patch is attached and i have more of them on the way (fixing some other
bugs and others).
Can i use this way to sending patches ?

MOJE

P.S. in our project (www.liberouter.org) we will use remote capture and
we want to help with this part of libpcap/winpcap.

> Tomas,
>  
> thanks for the bug report. Are you able to provide a patch for this
> bug? At the moment the rpcapd daemon is without an
> official maintainer, so bugs in this component might take a long time
> to be fixed.
>  
> Have a nice day
> GV
>
> *From:* Tomas Konir <mailto:[email protected]>
> *Sent:* Tuesday, April 27, 2010 1:03 AM
> *To:* [email protected] <mailto:[email protected]>
> *Subject:* [Winpcap-users] BUG in rpcapd
>
> Hi
> rpcapd contains BUG in daemon.c, function daemon_seraddr(...)
> There is assumption, that if sockaddr_in->ss_faminly is not AF_INET,
> than must be AF_INET6.
> There are more family types and with last libpcap-1.1.1 it results
> memory corruption and SIGSEGV.
>
> MOJE

-- 
Tomas Konir
Prague
Czech Republic
ICQ:      25849167
Jabber: [email protected] <mailto:[email protected]>
diff -Nur winpcap.orig//wpcap/libpcap/rpcapd/daemon.c winpcap/wpcap/libpcap/rpcapd/daemon.c
--- winpcap.orig//wpcap/libpcap/rpcapd/daemon.c	2006-08-14 11:41:00.000000000 +0200
+++ winpcap/wpcap/libpcap/rpcapd/daemon.c	2010-04-27 20:11:09.796405461 +0200
@@ -1548,7 +1548,7 @@
 		sockaddr->sin_port= htons(sockaddr->sin_port);
 		memcpy(sockaddrout, sockaddr, sizeof(struct sockaddr_in) );
 	}
-	else
+	else if(sockaddrin->ss_family == AF_INET6)
 	{
 	struct sockaddr_in6 *sockaddr;
 	
_______________________________________________
Winpcap-users mailing list
[email protected]
https://www.winpcap.org/mailman/listinfo/winpcap-users

Reply via email to