]> git.pld-linux.org Git - packages/crossmingw32-gcc.git/blob - format-security.patch
e978e802e03114de32884159139230db4bc58486
[packages/crossmingw32-gcc.git] / format-security.patch
1 --- gcc-4.6.2/libcpp/expr.c~    2011-04-29 00:39:59.000000000 +0200
2 +++ gcc-4.6.2/libcpp/expr.c     2012-12-07 22:38:30.102991906 +0100
3 @@ -434,9 +434,9 @@
4                                 : N_("use of C99 long long integer constant");
5  
6           if (CPP_OPTION (pfile, c99))
7 -            cpp_warning (pfile, CPP_W_LONG_LONG, message);
8 +            cpp_warning (pfile, CPP_W_LONG_LONG, "%s", message);
9            else
10 -            cpp_pedwarning (pfile, CPP_W_LONG_LONG, message);
11 +            cpp_pedwarning (pfile, CPP_W_LONG_LONG, "%s", message);
12          }
13  
14        result |= CPP_N_INTEGER;
15 --- gcc-4.6.2/libcpp/macro.c~   2010-09-29 16:49:14.000000000 +0200
16 +++ gcc-4.6.2/libcpp/macro.c    2012-12-07 22:45:54.119642910 +0100
17 @@ -1761,7 +1761,7 @@
18              function-like macros, but not at the end.  */
19           if (following_paste_op)
20             {
21 -             cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
22 +             cpp_error (pfile, CPP_DL_ERROR, "%s", paste_op_error_msg);
23               return false;
24             }
25           break;
26 @@ -1774,7 +1774,7 @@
27              function-like macros, but not at the beginning.  */
28           if (macro->count == 1)
29             {
30 -             cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
31 +             cpp_error (pfile, CPP_DL_ERROR, "%s", paste_op_error_msg);
32               return false;
33             }
34  
35 --- gcc-4.6.2/gcc/lto-wrapper.c~        2011-02-01 15:42:08.000000000 +0100
36 +++ gcc-4.6.2/gcc/lto-wrapper.c 2012-12-07 22:52:38.609628642 +0100
37 @@ -181,10 +181,10 @@
38        if (err != 0)
39         {
40           errno = err;
41 -         fatal_perror (errmsg);
42 +         fatal_perror ("%s", errmsg);
43         }
44        else
45 -       fatal (errmsg);
46 +       fatal ("%s", errmsg);
47      }
48  
49    return pex;
This page took 0.026691 seconds and 2 git commands to generate.