Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/hping/files: hping-3_pre20051105-scan-overflow.patch
Date: Tue, 30 Nov 2010 21:30:59
Message-Id: 20101130213045.BEDA92004B@flycatcher.gentoo.org
1 jer 10/11/30 21:30:45
2
3 Added: hping-3_pre20051105-scan-overflow.patch
4 Log:
5 Fix overflow in scan.c (bug #340251). Simplify src_configure and export CC there. Set RDEPEND.
6
7 (Portage version: 2.2.0_alpha6/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 net-analyzer/hping/files/hping-3_pre20051105-scan-overflow.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hping/files/hping-3_pre20051105-scan-overflow.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hping/files/hping-3_pre20051105-scan-overflow.patch?rev=1.1&content-type=text/plain
14
15 Index: hping-3_pre20051105-scan-overflow.patch
16 ===================================================================
17 --- a/scan.c 2003-10-22 12:41:00.000000000 +0200
18 +++ b/scan.c 2010-11-30 22:19:23.000000000 +0100
19 @@ -456,7 +456,7 @@
20 continue;
21 /* time to copy headers in a safe place */
22 p = packet+linkhdr_size+iphdrlen;
23 - memcpy(&icmp, p, sizeof(subtcp));
24 + memcpy(&icmp, p, sizeof(icmp));
25 p += sizeof(icmp);
26 memcpy(&subip, p, sizeof(ip));
27 p += sizeof(ip);