File CVE-2010-3704.diff of Package kdegraphics3

--- kpdf/xpdf/fofi/FoFiType1.cc.sav	2007-05-14 09:39:30.000000000 +0200
+++ kpdf/xpdf/fofi/FoFiType1.cc	2010-10-07 17:59:20.499608431 +0200
@@ -224,7 +224,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;
openSUSE Build Service is sponsored by