Index: src/base/PdfParser.cpp
===================================================================
--- src/base/PdfParser.cpp	(revision 1970)
+++ src/base/PdfParser.cpp	(working copy)
@@ -898,7 +898,7 @@
             int read = sscanf( m_buffer.GetBuffer(), "%10" PDF_FORMAT_INT64 " %5" PDF_FORMAT_INT64 " %c%c%c",
                               &llOffset, &llGeneration, &cUsed, &empty1, &empty2 );
             
-            if ( read != 5 )
+            if ( read != 5 || ( empty1 != '\r' ) || ( empty2 != '\n' ) )
             {
                 // part of XrefEntry is missing, or i/o error
                 PODOFO_RAISE_ERROR( ePdfError_InvalidXRef );
