]> git.pld-linux.org Git - packages/pdflib.git/blob - format-security.patch
- rebuild with perl 5.26
[packages/pdflib.git] / format-security.patch
1 --- pdflib-4.0.3/pdflib/p_basic.c~      2002-06-19 18:01:15.000000000 +0200
2 +++ pdflib-4.0.3/pdflib/p_basic.c       2013-06-11 13:52:10.282606066 +0200
3 @@ -308,7 +308,7 @@
4      switch (type) {
5         /* Issue a warning message and continue */
6         case PDF_NonfatalError:
7 -           (void) fprintf(stderr, msg);
8 +           (void) fprintf(stderr, "%s", msg);
9             return;
10  
11         /* give up in all other cases */
12 @@ -324,7 +324,7 @@
13         case PDF_SystemError:
14         case PDF_UnknownError:
15         default:
16 -           (void) fprintf(stderr, msg);        /* print message */
17 +           (void) fprintf(stderr, "%s", msg);  /* print message */
18             PDF_delete(p);                      /* clean up PDFlib */
19             exit(99);                           /* good-bye */
20      }
21 --- pdflib-4.0.3/bind/perl/pdflib_pl.c~ 2002-01-21 20:56:32.000000000 +0100
22 +++ pdflib-4.0.3/bind/perl/pdflib_pl.c  2013-06-11 13:55:20.607974789 +0200
23 @@ -407,7 +407,7 @@
24  
25      /* Issue a warning message and continue for non-fatal errors */
26      if (type == PDF_NonfatalError) {
27 -       fprintf(stderr, error_message);
28 +       fprintf(stderr, "%s", error_message);
29         return;
30      }
31         
32 --- pdflib-4.0.3/bind/python/pdflib_py.c~       2002-01-07 19:26:29.000000000 +0100
33 +++ pdflib-4.0.3/bind/python/pdflib_py.c        2013-06-11 13:56:08.775156142 +0200
34 @@ -578,7 +578,7 @@
35  
36      /* Issue a warning message and continue for non-fatal errors */
37      if (type == PDF_NonfatalError) {
38 -       fprintf(stderr, error_message);
39 +       fprintf(stderr, "%s", error_message);
40         return;
41      }
42         
43 --- pdflib-4.0.3/bind/tcl/pdflib_tcl.c~ 2002-01-07 19:26:29.000000000 +0100
44 +++ pdflib-4.0.3/bind/tcl/pdflib_tcl.c  2013-06-11 13:56:38.242137592 +0200
45 @@ -397,7 +397,7 @@
46  
47      /* Issue a warning message and continue for non-fatal errors */
48      if (type == PDF_NonfatalError) {
49 -       fprintf(stderr, ex->buffer);
50 +       fprintf(stderr, "%s", ex->buffer);
51         return;
52      }
53         
54 --- pdflib-4.0.3/bind/perl/pdflib_pl.c~ 2013-06-11 13:57:16.709215093 +0200
55 +++ pdflib-4.0.3/bind/perl/pdflib_pl.c  2013-06-11 14:28:31.358937900 +0200
56 @@ -388,7 +388,7 @@
57  #include "pdflib.h"
58  
59  /* exception handling is currently not thread-safe! */
60 -#define SWIG_exception(msg)    croak(msg)
61 +#define SWIG_exception(msg)    croak("%s", msg)
62  static jmp_buf                 exception_buffer;
63  static int                     exception_status;
64  static char                    error_message[256];
This page took 0.030398 seconds and 3 git commands to generate.