Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-print/mtink/files: mtink-1.0.16-overflow.patch
Date: Sat, 28 Jan 2012 21:23:36
Message-Id: 20120128212325.A7C0F2004C@flycatcher.gentoo.org
1 dilfridge 12/01/28 21:23:25
2
3 Added: mtink-1.0.16-overflow.patch
4 Log:
5 Fix buffer overflow, bug 342799, and make call
6
7 (Portage version: 2.1.10.44/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-print/mtink/files/mtink-1.0.16-overflow.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/mtink/files/mtink-1.0.16-overflow.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/mtink/files/mtink-1.0.16-overflow.patch?rev=1.1&content-type=text/plain
14
15 Index: mtink-1.0.16-overflow.patch
16 ===================================================================
17 --- server/mtinkd.c.orig 2012-01-15 13:03:41.000000000 +0000
18 +++ server/mtinkd.c 2012-01-15 13:03:58.000000000 +0000
19 @@ -244,7 +244,7 @@
20 /* look for pid into /var/run/mtink(<fifo> */
21 if ( (fp = fopen(runFile,"r")) )
22 {
23 - if ( fgets(ibuf, sizeof(buf), fp) )
24 + if ( fgets(ibuf, sizeof(ibuf), fp) )
25 {
26 if ( (pid = atoi(ibuf)) )
27 {