Summary: | pdf_loadobjstm: don't overwrite object reference in xref with older version | ||
---|---|---|---|
Product: | MuPDF | Reporter: | zeniko |
Component: | mupdf | Assignee: | Tor Andersson <tor.andersson> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | unspecified | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
URL: | http://code.google.com/p/sumatrapdf/issues/detail?id=926 | ||
Customer: | Word Size: | --- |
Description
zeniko
2010-05-29 21:35:15 UTC
Well, http://code.google.com/p/sumatrapdf/source/detail?r=1923 would be the version which actually works... A variation of the same issue can be found at http://drop.io/mdj12345 (from http://code.google.com/p/sumatrapdf/issues/detail?id=936 ): in this document, the object numbers of old xrefs are re-used, but due to the fact that pdf_readnewxref works backwards, the table entries are overwritten nonetheless. See http://code.google.com/p/sumatrapdf/source/detail?r=1924 for a patch for this second issue. I've pushed patches that fix the xref table clobbering in both of these cases. FYI: Your first fix introduced a memory leak due to unused objects not being dropped. |