diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2011-01-12 17:01:50 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2011-01-12 17:01:50 +0000 |
commit | 0218cd226be6b97f43c60a5dd175016d1bb28594 (patch) | |
tree | f7923f65514d3e1b184bce3143bfb4ce97e65074 /graphics/xpdf/files | |
parent | 20a1d08d76237d37409c44cbc671c6426afcb14c (diff) | |
download | ports-0218cd226be6b97f43c60a5dd175016d1bb28594.tar.gz ports-0218cd226be6b97f43c60a5dd175016d1bb28594.zip |
Notes
Diffstat (limited to 'graphics/xpdf/files')
-rw-r--r-- | graphics/xpdf/files/patch-fofi_FoFiTrueType.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/xpdf/files/patch-fofi_FoFiTrueType.cc b/graphics/xpdf/files/patch-fofi_FoFiTrueType.cc new file mode 100644 index 000000000000..e8d2f32d178f --- /dev/null +++ b/graphics/xpdf/files/patch-fofi_FoFiTrueType.cc @@ -0,0 +1,11 @@ +--- fofi/FoFiTrueType.cc.orig 2010-12-29 12:13:14.000000000 -0800 ++++ fofi/FoFiTrueType.cc 2010-12-29 12:15:15.000000000 -0800 +@@ -906,7 +906,7 @@ + // check for an incorrect cmap table length + badCmapLen = gFalse; + cmapLen = 0; // make gcc happy +- if (!missingCmap) { ++ if (!missingCmap && cmaps != NULL && nCmaps != 0) { + cmapLen = cmaps[0].offset + cmaps[0].len; + for (i = 1; i < nCmaps; ++i) { + if (cmaps[i].offset + cmaps[i].len > cmapLen) { |