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/bigeye/files: bigeye-0.3-overflow.patch
Date: Mon, 01 Aug 2011 01:41:54
Message-Id: 20110801014143.A13702004B@flycatcher.gentoo.org
1 jer 11/08/01 01:41:43
2
3 Added: bigeye-0.3-overflow.patch
4 Log:
5 Fix overflow (bug #342309).
6
7 (Portage version: 2.2.0_alpha49/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-analyzer/bigeye/files/bigeye-0.3-overflow.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/bigeye/files/bigeye-0.3-overflow.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/bigeye/files/bigeye-0.3-overflow.patch?rev=1.1&content-type=text/plain
14
15 Index: bigeye-0.3-overflow.patch
16 ===================================================================
17 --- src/bigeye.c.org 2011-08-01 03:11:16.779811941 +0200
18 +++ src/bigeye.c 2011-08-01 03:13:34.830778894 +0200
19 @@ -787,7 +787,7 @@
20 local.sin_family = AF_INET;
21 local.sin_port = htons(porta);
22 local.sin_addr.s_addr = INADDR_ANY;
23 - bzero(&(local.sin_zero),sizeof(local));
24 + memset(&(local.sin_zero), "\0", sizeof(local.sin_zero));
25
26 if(setsockopt(sock_a, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) {
27 perror("setsockopt");