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
5 /* Issue a warning message and continue */
6 case PDF_NonfatalError:
7 - (void) fprintf(stderr, msg);
8 + (void) fprintf(stderr, "%s", msg);
11 /* give up in all other cases */
14 case PDF_UnknownError:
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 */
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
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);
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
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);
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
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);
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
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];