jlec        15/02/02 08:28:51

  Added:                libf2c-20110801-format-security.patch
  Log:
  dev-libs/libf2c: Add patch for format-security, #538342; thanks Ted Tanberry 
for the patch
  
  (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 
B9D4F231BD1558AB!)

Revision  Changes    Path
1.1                  dev-libs/libf2c/files/libf2c-20110801-format-security.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libf2c/files/libf2c-20110801-format-security.patch?rev=1.1&view=markup
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

Index: libf2c-20110801-format-security.patch
===================================================================
--- arithchk.c
+++ arithchk.c
@@ -122,7 +122,7 @@
        long Cray1;
 
        /* Cray1 = 4617762693716115456 -- without overflow on non-Crays */
-       Cray1 = printf(emptyfmt) < 0 ? 0 : 4617762;
+       Cray1 = fputs(emptyfmt, stdout) < 0 ? 0 : 4617762;
        if (printf(emptyfmt, Cray1) >= 0)
                Cray1 = 1000000*Cray1 + 693716;
        if (printf(emptyfmt, Cray1) >= 0)




Reply via email to