]> git.pld-linux.org Git - packages/htmldoc.git/blob - htmldoc-1.8.27-scanf-overflows.patch
- fix typo
[packages/htmldoc.git] / htmldoc-1.8.27-scanf-overflows.patch
1 diff -ur htmldoc-1.8.27~/htmldoc/htmllib.cxx htmldoc-1.8.27/htmldoc/htmllib.cxx
2 --- htmldoc-1.8.27~/htmldoc/htmllib.cxx 2009-08-13 19:25:30.066734472 -0400
3 +++ htmldoc-1.8.27/htmldoc/htmllib.cxx  2009-08-13 19:25:38.997733603 -0400
4 @@ -2154,7 +2154,7 @@
5           * assigned charset...
6           */
7  
8 -          if (sscanf(line, "%*s%*s%*s%*s%f%*s%*s%s", &width, glyph) != 2)
9 +          if (sscanf(line, "%*s%*s%*s%*s%f%*s%*s%63s", &width, glyph) != 2)
10             continue;
11  
12            for (ch = 0; ch < 256; ch ++)
13 Only in htmldoc-1.8.27/htmldoc: htmllib.cxx.orig
14 diff -ur htmldoc-1.8.27~/htmldoc/ps-pdf.cxx htmldoc-1.8.27/htmldoc/ps-pdf.cxx
15 --- htmldoc-1.8.27~/htmldoc/ps-pdf.cxx  2009-08-13 19:25:30.076736152 -0400
16 +++ htmldoc-1.8.27/htmldoc/ps-pdf.cxx   2009-08-13 19:25:39.010735889 -0400
17 @@ -12515,7 +12515,7 @@
18           * assigned charset...
19           */
20  
21 -         if (sscanf(line, "%*s%*s%*s%*s%d%*s%*s%s", &width, glyph) != 2)
22 +         if (sscanf(line, "%*s%*s%*s%*s%d%*s%*s%63s", &width, glyph) != 2)
23             continue;
24  
25           for (ch = 0; ch < 256; ch ++)
26 Only in htmldoc-1.8.27/htmldoc: ps-pdf.cxx.orig
27 diff -ur htmldoc-1.8.27~/htmldoc/util.cxx htmldoc-1.8.27/htmldoc/util.cxx
28 --- htmldoc-1.8.27~/htmldoc/util.cxx    2005-04-24 15:20:32.000000000 -0400
29 +++ htmldoc-1.8.27/htmldoc/util.cxx     2009-08-13 19:25:39.014737749 -0400
30 @@ -484,7 +484,7 @@
31      PageWidth  = 595;
32      PageLength = 792;
33    }
34 -  else if (sscanf(size, "%fx%f%s", &width, &length, units) >= 2)
35 +  else if (sscanf(size, "%fx%f%254s", &width, &length, units) >= 2)
36    {
37     /*
38      * Custom size...
This page took 0.158428 seconds and 3 git commands to generate.