]> git.pld-linux.org Git - packages/a2ps.git/blob - format-security.patch
- fix format string errors
[packages/a2ps.git] / format-security.patch
1 --- a2ps-4.14/lib/output.c~     2015-04-01 22:07:29.000000000 +0200
2 +++ a2ps-4.14/lib/output.c      2015-04-01 22:08:53.825344087 +0200
3 @@ -525,7 +525,7 @@
4                      expand_user_string (job, FIRST_FILE (job),
5                                          (const uchar *) "Expand: requirement",
6                                          (const uchar *) token));
7 -       output (dest, expansion);
8 +       output (dest, "%s", expansion);
9         continue;
10        }
11  
12 --- a2ps-4.14/lib/psgen.c~      2007-12-29 02:58:22.000000000 +0100
13 +++ a2ps-4.14/lib/psgen.c       2015-04-01 22:09:36.668677711 +0200
14 @@ -232,7 +232,7 @@
15      default:
16        *buf = '\0';
17        ps_escape_char (job, cp[i], buf);
18 -      output (jdiv, (char *) buf);
19 +      output (jdiv, "%s", (char *) buf);
20        break;
21      }
22    }
23 --- a2ps-4.14/lib/parseppd.y~   2007-12-29 02:58:21.000000000 +0100
24 +++ a2ps-4.14/lib/parseppd.y    2015-04-01 22:12:11.502012094 +0200
25 @@ -154,7 +154,7 @@
26  void
27  yyerror (const char *msg)
28  {
29 -  error_at_line (1, 0, ppdfilename, ppdlineno, msg);
30 +  error_at_line (1, 0, ppdfilename, ppdlineno, "%s", msg);
31  }
32  
33  /*
34 --- a2ps-4.14/src/parsessh.y~   2007-12-29 02:58:35.000000000 +0100
35 +++ a2ps-4.14/src/parsessh.y    2015-04-01 22:12:50.782012360 +0200
36 @@ -740,7 +740,7 @@
37  void
38  yyerror (const char *msg)
39  {
40 -  error_at_line (1, 0, sshfilename, sshlineno, msg);
41 +  error_at_line (1, 0, sshfilename, sshlineno, "%s", msg);
42  }
43  
44  /*
This page took 0.057121 seconds and 3 git commands to generate.