]> git.pld-linux.org Git - packages/crossavr-gcc.git/blob - format-security.patch
- more fixes
[packages/crossavr-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  
This page took 0.095452 seconds and 3 git commands to generate.