]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - cups/patches/013_cups-strict-ppd-line-length.patch
b2697ec3185bf1c938c8698663d62f350b439bfe
[people/ms/ipfire-3.x.git] / cups / patches / 013_cups-strict-ppd-line-length.patch
1 diff -up cups-1.5b1/cups/ppd.c.strict-ppd-line-length cups-1.5b1/cups/ppd.c
2 --- cups-1.5b1/cups/ppd.c.strict-ppd-line-length 2011-05-20 05:49:49.000000000 +0200
3 +++ cups-1.5b1/cups/ppd.c 2011-05-24 15:46:13.000000000 +0200
4 @@ -2786,7 +2786,7 @@ ppd_read(cups_file_t *fp, /* I - Fil
5 *lineptr++ = ch;
6 col ++;
7
8 - if (col > (PPD_MAX_LINE - 1))
9 + if (col > (PPD_MAX_LINE - 1) && cg->ppd_conform == PPD_CONFORM_STRICT)
10 {
11 /*
12 * Line is too long...
13 @@ -2847,7 +2847,7 @@ ppd_read(cups_file_t *fp, /* I - Fil
14 {
15 col ++;
16
17 - if (col > (PPD_MAX_LINE - 1))
18 + if (col > (PPD_MAX_LINE - 1) && cg->ppd_conform == PPD_CONFORM_STRICT)
19 {
20 /*
21 * Line is too long...
22 @@ -2906,7 +2906,7 @@ ppd_read(cups_file_t *fp, /* I - Fil
23 {
24 col ++;
25
26 - if (col > (PPD_MAX_LINE - 1))
27 + if (col > (PPD_MAX_LINE - 1) && cg->ppd_conform == PPD_CONFORM_STRICT)
28 {
29 /*
30 * Line is too long...