diff options
author | Gregorio Guidi <greg_g@gentoo.org> | 2005-08-05 10:51:56 +0000 |
---|---|---|
committer | Gregorio Guidi <greg_g@gentoo.org> | 2005-08-05 10:51:56 +0000 |
commit | a81844bdd9f9ee4b98cc0f947af33c1e6670748c (patch) | |
tree | 076ba9291689462bc5c38d6ab7a6351e6c093da9 /kde-base/kpdf/files | |
parent | Add patch to fix compilation with gcc4 (#101384). Add patch to fix regression... (diff) | |
download | gentoo-2-a81844bdd9f9ee4b98cc0f947af33c1e6670748c.tar.gz gentoo-2-a81844bdd9f9ee4b98cc0f947af33c1e6670748c.tar.bz2 gentoo-2-a81844bdd9f9ee4b98cc0f947af33c1e6670748c.zip |
Add patch to fix regression in kpdf (#101119).
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'kde-base/kpdf/files')
-rw-r--r-- | kde-base/kpdf/files/digest-kpdf-3.4.2-r1 | 1 | ||||
-rw-r--r-- | kde-base/kpdf/files/kdegraphics-3.4.2-kpdf-fix.patch | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/kde-base/kpdf/files/digest-kpdf-3.4.2-r1 b/kde-base/kpdf/files/digest-kpdf-3.4.2-r1 new file mode 100644 index 000000000000..80c5b0d96ab2 --- /dev/null +++ b/kde-base/kpdf/files/digest-kpdf-3.4.2-r1 @@ -0,0 +1 @@ +MD5 50916460952c4142329a7c6a47fe1530 kdegraphics-3.4.2.tar.bz2 6579227 diff --git a/kde-base/kpdf/files/kdegraphics-3.4.2-kpdf-fix.patch b/kde-base/kpdf/files/kdegraphics-3.4.2-kpdf-fix.patch new file mode 100644 index 000000000000..5462c6e03539 --- /dev/null +++ b/kde-base/kpdf/files/kdegraphics-3.4.2-kpdf-fix.patch @@ -0,0 +1,33 @@ +diff -Nur kdegraphics-3.4.2.orig/kpdf/xpdf/xpdf/PDFDoc.cc kdegraphics-3.4.2/kpdf/xpdf/xpdf/PDFDoc.cc +--- kdegraphics-3.4.2.orig/kpdf/xpdf/xpdf/PDFDoc.cc 2005-07-20 12:00:36.000000000 +0200 ++++ kdegraphics-3.4.2/kpdf/xpdf/xpdf/PDFDoc.cc 2005-08-05 11:46:39.000000000 +0200 +@@ -115,23 +115,19 @@ + GBool PDFDoc::setup(GString *ownerPassword, GString *userPassword) { + str->reset(); + +- char eof[8]; ++ char *eof = new char[1024]; + int pos = str->getPos(); +- str->setPos(7, -1); +- eof[0] = str->getChar(); +- eof[1] = str->getChar(); +- eof[2] = str->getChar(); +- eof[3] = str->getChar(); +- eof[4] = str->getChar(); +- eof[5] = str->getChar(); +- eof[6] = str->getChar(); +- eof[7] = '\0'; ++ str->setPos(1024, -1); ++ for (int i = 0; i < 1024; i++) eof[i] = str->getChar(); ++ eof[1024] = '\0'; + if (strstr(eof, "%%EOF") == NULL) + { + error(-1, "Document does not have ending %%EOF"); + errCode = errDamaged; ++ delete[] eof; + return gFalse; + } ++ delete[] eof; + + str->setPos(pos); + |