fofi/FoFiTrueType.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 0c3517bfb4e1e1a28962f8d490ad69ec5766b6a1 Author: Albert Astals Cid <[email protected]> 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 <[email protected]> // Copyright (C) 2007 Koji Otani <[email protected]> // Copyright (C) 2007 Carlos Garcia Campos <[email protected]> -// Copyright (C) 2008 Albert Astals Cid <[email protected]> +// Copyright (C) 2008, 2009 Albert Astals Cid <[email protected]> // Copyright (C) 2008 Tomas Are Haavet <[email protected]> // // 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; _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
