Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libf2c/files: libf2c-20110801-format-security.patch
Date: Mon, 02 Feb 2015 08:28:57
Message-Id: 20150202082851.D9EAA10E1D@oystercatcher.gentoo.org
1 jlec 15/02/02 08:28:51
2
3 Added: libf2c-20110801-format-security.patch
4 Log:
5 dev-libs/libf2c: Add patch for format-security, #538342; thanks Ted Tanberry for the patch
6
7 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
8
9 Revision Changes Path
10 1.1 dev-libs/libf2c/files/libf2c-20110801-format-security.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libf2c/files/libf2c-20110801-format-security.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libf2c/files/libf2c-20110801-format-security.patch?rev=1.1&content-type=text/plain
14
15 Index: libf2c-20110801-format-security.patch
16 ===================================================================
17 --- arithchk.c
18 +++ arithchk.c
19 @@ -122,7 +122,7 @@
20 long Cray1;
21
22 /* Cray1 = 4617762693716115456 -- without overflow on non-Crays */
23 - Cray1 = printf(emptyfmt) < 0 ? 0 : 4617762;
24 + Cray1 = fputs(emptyfmt, stdout) < 0 ? 0 : 4617762;
25 if (printf(emptyfmt, Cray1) >= 0)
26 Cray1 = 1000000*Cray1 + 693716;
27 if (printf(emptyfmt, Cray1) >= 0)