Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 83607 Details for
Bug 128367
poppler-0.5.1 upstream bugfix
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
poppler-0.5.1-bug6454.patch
poppler-0.5.1-bug6454.patch (text/plain), 889 bytes, created by
Ruben Jenster
on 2006-04-01 04:10:46 UTC
(
hide
)
Description:
poppler-0.5.1-bug6454.patch
Filename:
MIME Type:
Creator:
Ruben Jenster
Created:
2006-04-01 04:10:46 UTC
Size:
889 bytes
patch
obsolete
>diff -ur poppler-0.5.1.orig/poppler/XRef.cc poppler-0.5.1/poppler/XRef.cc >--- poppler-0.5.1.orig/poppler/XRef.cc 2006-04-01 14:01:59.000000000 +0200 >+++ poppler-0.5.1/poppler/XRef.cc 2006-04-01 14:01:21.000000000 +0200 >@@ -937,19 +937,23 @@ > > int XRef::getNumEntry(int offset) const > { >- int res = -1; >- int resOffset = -1; >- XRefEntry e; >- for (int i = 0; i < size; ++i) >+ if (size > 0) > { >- e = entries[i]; >- if (e.offset < offset && e.offset > resOffset) >+ int res = 0; >+ Guint resOffset = entries[0].offset; >+ XRefEntry e; >+ for (int i = 1; i < size; ++i) > { >- res = i; >- resOffset = e.offset; >+ e = entries[i]; >+ if (e.offset < offset && e.offset >= resOffset) >+ { >+ res = i; >+ resOffset = e.offset; >+ } > } >+ return res; > } >- return res; >+ else return -1; > } > > Guint XRef::strToUnsigned(char *s) {
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 128367
: 83607 |
83608