git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c63b2bf
)
fixed segv for files with wrong font types
author
Matthias Kramm
<kramm@quiss.org>
Tue, 8 Jun 2010 16:28:45 +0000
(09:28 -0700)
committer
Matthias Kramm
<kramm@quiss.org>
Tue, 8 Jun 2010 16:28:45 +0000
(09:28 -0700)
lib/pdf/xpdf-changes.patch
patch
|
blob
|
history
diff --git
a/lib/pdf/xpdf-changes.patch
b/lib/pdf/xpdf-changes.patch
index
19b7bc1
..
625b971
100644
(file)
--- a/
lib/pdf/xpdf-changes.patch
+++ b/
lib/pdf/xpdf-changes.patch
@@
-184,6
+184,15
@@
--- xpdf/GfxFont.cc.orig 2010-05-18 11:22:18.000000000 -0700
+++ xpdf/GfxFont.cc 2010-05-18 11:22:18.000000000 -0700
+@@ -194,7 +194,7 @@
+ embFontID = obj2.getRef();
+ if (type != fontType1) {
+ error(-1, "Mismatch between font type and embedded font file");
+- type = fontType1;
++ type = isCIDFont() ? fontCIDType0 : fontType1;
+ }
+ }
+ obj2.free();
@@ -919,6 +919,10 @@
return 1;
}