--- poppler-0.12.4/fofi/FoFiType1.cc 2010-01-17 01:06:57.000000000 +0100 +++ poppler-0.12.4/fofi/FoFiType1.cc 2010-10-06 13:37:39.000000000 +0200 @@ -13,7 +13,7 @@ // All changes made under the Poppler project to this file are licensed // under GPL version 2 or later // -// Copyright (C) 2005, 2008 Albert Astals Cid +// Copyright (C) 2005, 2008, 2010 Albert Astals Cid // Copyright (C) 2005 Kristian Høgsberg // // To see a description of the changes please see the Changelog file that @@ -241,7 +242,7 @@ void FoFiType1::parse() { code = code * 8 + (*p2 - '0'); } } - if (code < 256) { + if (code < 256 && code >= 0) { for (p = p2; *p == ' ' || *p == '\t'; ++p) ; if (*p == '/') { ++p;