Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/netwatch/files: netwatch-1.3.0.1-fix-fortify.patch
Date: Tue, 05 Oct 2010 18:03:56
Message-Id: 20101005180159.24EA12003C@flycatcher.gentoo.org
1 hwoarang 10/10/05 18:01:59
2
3 Added: netwatch-1.3.0.1-fix-fortify.patch
4 Log:
5 Adjust string size to avoid buffer overflow. Bug #339456
6
7 (Portage version: 2.2_rc86/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-analyzer/netwatch/files/netwatch-1.3.0.1-fix-fortify.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netwatch/files/netwatch-1.3.0.1-fix-fortify.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netwatch/files/netwatch-1.3.0.1-fix-fortify.patch?rev=1.1&content-type=text/plain
14
15 Index: netwatch-1.3.0.1-fix-fortify.patch
16 ===================================================================
17 Index: netwatch-1.3.0/netwatch.c
18 ===================================================================
19 --- netwatch-1.3.0.orig/netwatch.c
20 +++ netwatch-1.3.0/netwatch.c
21 @@ -302,7 +302,7 @@ int reload_timer_sec = 0;
22 int reload_active = FALSE;
23 int statsdate = FALSE;
24 int statsappend = TRUE;
25 -char tmstring[80] = "%Y.%m.%d.%H.%M";
26 +char tmstring[256] = "%Y.%m.%d.%H.%M";
27 int freezedisplay = FALSE;
28 int lastfreeze = FALSE;
29 int sentclear = FALSE;