Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
index a94e5bb01d7eccd9933bab45d10e2c4f3592bce5..c9d4f142b5e14037ab0b0ab6ab00e3a0bbdc4676 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
@@ -2437,9 +2437,8 @@ CPDF_Stream* CPDF_SyntaxParser::ReadStream(CPDF_Dictionary* pDict, |
((CPDF_Reference*)pLenObj)->GetRefObjNum() != objnum))) { |
len = pLenObj->GetInteger(); |
} |
- // Check whether end of line markers follow the keyword 'stream'. |
- // The stream starts after end of line markers. |
- m_Pos += ReadEOLMarkers(m_Pos); |
+ // Locate the start of stream. |
+ ToNextLine(); |
FX_FILESIZE streamStartPos = m_Pos; |
if (pContext) { |
pContext->m_DataStart = streamStartPos; |