[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdegraphics/kpdf/xpdf/fofi
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2005-07-26 21:04:39
Message-ID: 1122411879.983879.28513.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 439010 by aacid:

 Fix for crash in document from poppler bug 3344


 M  +6 -10     FoFiType1.cc  


--- branches/KDE/3.5/kdegraphics/kpdf/xpdf/fofi/FoFiType1.cc #439009:439010
@@ -186,17 +186,13 @@
 	      }
 	    }
 	  }
-	} else {
-	  p = strtok(buf, " \t\n\r");
-	  if (p)
-	  {
-	    if (!strcmp(p, "def")) break;
-	    if (!strcmp(p, "readonly")) break;
-	    // the spec does not says this but i'm mantaining old xpdf behaviour that \
                accepts "foo def" as end of the encoding array
-	    p = strtok(buf, " \t\n\r");
-	    if (p && !strcmp(p, "def")) break;
-	  }
 	}
+	
+	// Any line that begins with "def" or contains " def"
+	// terminates the encoding array.
+	if (!strcmp (p, "def") || strstr (buf, " def"))
+	  break;
+	
 	line = line1;
       }
       //~ check for getinterval/putinterval junk


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic