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

List:       kde-commits
Subject:    branches/KDE/3.5/kdegraphics/kpdf/xpdf/xpdf
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2008-02-18 19:22:19
Message-ID: 1203362539.996633.7622.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 776758 by aacid:

xref can be null so check it is not


 M  +1 -1      Lexer.cc  


--- branches/KDE/3.5/kdegraphics/kpdf/xpdf/xpdf/Lexer.cc #776757:776758
@@ -298,7 +298,7 @@
 	  n = 0;
 	  
 	  // we are growing see if the document is not malformed and we are growing too much
-	  if (objNum > 0)
+	  if (objNum > 0 && xref != NULL)
 	  {
 	    int newObjNum = xref->getNumEntry(curStr.streamGetPos());
 	    if (newObjNum != objNum)
[prev in list] [next in list] [prev in thread] [next in thread] 

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