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 35b9726b4ab9db905ac8750a7f34c4ac950e8269..c705ea73576de248cec87e003635782a35a5ae99 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
@@ -2401,7 +2401,7 @@ CPDF_Stream* CPDF_SyntaxParser::ReadStream(CPDF_Dictionary* pDict, PARSE_CONTEXT |
{ |
CPDF_Object* pLenObj = pDict->GetElement(FX_BSTRC("Length")); |
FX_DWORD len = 0; |
- if (pLenObj && (pLenObj->GetType() != PDFOBJ_REFERENCE || |
+ if (pLenObj && ((pLenObj->GetType() != PDFOBJ_REFERENCE) || |
((((CPDF_Reference*)pLenObj)->GetObjList() != NULL) && |
((CPDF_Reference*)pLenObj)->GetRefObjNum() != objnum))) { |
FX_FILESIZE pos = m_Pos; |