pdfextfix04: #b6993503# fix uninitialized pointer, range check
This commit is contained in:
parent
e1e4bf8ec5
commit
5917d299bf
2 changed files with 30 additions and 1 deletions
|
@ -48,7 +48,7 @@ dummy:
|
||||||
|
|
||||||
TARFILE_NAME=xpdf-3.02
|
TARFILE_NAME=xpdf-3.02
|
||||||
TARFILE_MD5=599dc4cc65a07ee868cf92a667a913d2
|
TARFILE_MD5=599dc4cc65a07ee868cf92a667a913d2
|
||||||
PATCH_FILES=$(TARFILE_NAME).patch
|
PATCH_FILES=$(TARFILE_NAME).patch xpdf-3.02-sec.patch
|
||||||
|
|
||||||
CONFIGURE_DIR=
|
CONFIGURE_DIR=
|
||||||
BUILD_DIR=$(CONFIGURE_DIR)
|
BUILD_DIR=$(CONFIGURE_DIR)
|
||||||
|
|
29
xpdf/xpdf-3.02-sec.patch
Normal file
29
xpdf/xpdf-3.02-sec.patch
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
--- misc/xpdf-3.02/fofi/FoFiType1.cc 2007-02-27 23:05:51.000000000 +0100
|
||||||
|
+++ misc/build/xpdf-3.02/fofi/FoFiType1.cc 2010-10-20 18:10:09.000000000 +0200
|
||||||
|
@@ -224,7 +224,7 @@
|
||||||
|
code = code * 8 + (*p2 - '0');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- if (code < 256) {
|
||||||
|
+ if (code < 256 && code >= 0) {
|
||||||
|
for (p = p2; *p == ' ' || *p == '\t'; ++p) ;
|
||||||
|
if (*p == '/') {
|
||||||
|
++p;
|
||||||
|
--- misc/xpdf-3.02/xpdf/Gfx.cc 2007-02-27 23:05:52.000000000 +0100
|
||||||
|
+++ misc/build/xpdf-3.02/xpdf/Gfx.cc 2010-10-20 18:14:32.000000000 +0200
|
||||||
|
@@ -444,6 +444,7 @@
|
||||||
|
xref = xrefA;
|
||||||
|
subPage = gFalse;
|
||||||
|
printCommands = globalParams->getPrintCommands();
|
||||||
|
+ parser = NULL;
|
||||||
|
|
||||||
|
// start the resource stack
|
||||||
|
res = new GfxResources(xref, resDict, NULL);
|
||||||
|
@@ -486,6 +487,7 @@
|
||||||
|
xref = xrefA;
|
||||||
|
subPage = gTrue;
|
||||||
|
printCommands = globalParams->getPrintCommands();
|
||||||
|
+ parser = NULL;
|
||||||
|
|
||||||
|
// start the resource stack
|
||||||
|
res = new GfxResources(xref, resDict, NULL);
|
Loading…
Reference in a new issue