Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 64948 Details for
Bug 101119
KDE 3.4.2 Regression: kpdf can't open some documents.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Second try, this time with missing ';'
kdegraphics-3.4.2-kpdf-fix.patch (text/plain), 1.00 KB, created by
Avuton Olrich
on 2005-08-02 11:25:29 UTC
(
hide
)
Description:
Second try, this time with missing ';'
Filename:
MIME Type:
Creator:
Avuton Olrich
Created:
2005-08-02 11:25:29 UTC
Size:
1.00 KB
patch
obsolete
>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 03:00:36.000000000 -0700 >+++ kdegraphics-3.4.2/kpdf/xpdf/xpdf/PDFDoc.cc 2005-08-02 10:26:56.647106136 -0700 >@@ -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); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 101119
:
64947
| 64948