[poppler] fofi/FoFiTrueType.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed May 20 14:09:27 PDT 2009
fofi/FoFiTrueType.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 0c3517bfb4e1e1a28962f8d490ad69ec5766b6a1
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed May 20 23:08:41 2009 +0200
Fix pdftops crash on file from KDE bug 174899
Still does not generate a correct ps file, but at least the program does not crash now
diff --git a/fofi/FoFiTrueType.cc b/fofi/FoFiTrueType.cc
index b7f3f6c..d716638 100644
--- a/fofi/FoFiTrueType.cc
+++ b/fofi/FoFiTrueType.cc
@@ -16,7 +16,7 @@
// Copyright (C) 2006 Takashi Iwai <tiwai at suse.de>
// Copyright (C) 2007 Koji Otani <sho at bbr.jp>
// Copyright (C) 2007 Carlos Garcia Campos <carlosgc at gnome.org>
-// Copyright (C) 2008 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2008, 2009 Albert Astals Cid <aacid at kde.org>
// Copyright (C) 2008 Tomas Are Haavet <tomasare at gmail.com>
//
// To see a description of the changes please see the Changelog file that
@@ -1539,6 +1539,9 @@ void FoFiTrueType::cvtSfnts(FoFiOutputFunc outputFunc,
// construct the 'head' table, zero out the font checksum
i = seekTable("head");
+ if (i < 0 || i >= nTables) {
+ return;
+ }
pos = tables[i].offset;
if (!checkRegion(pos, 54)) {
return;
More information about the poppler
mailing list