summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/parser/cpdf_parser.cpp')
-rw-r--r--core/fpdfapi/parser/cpdf_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_parser.cpp b/core/fpdfapi/parser/cpdf_parser.cpp
index fc98be5f6e..12ec81bc07 100644
--- a/core/fpdfapi/parser/cpdf_parser.cpp
+++ b/core/fpdfapi/parser/cpdf_parser.cpp
@@ -159,7 +159,7 @@ CPDF_Parser::Error CPDF_Parser::StartParse(
m_pDocument = pDocument;
bool bXRefRebuilt = false;
- if (m_pSyntax->SearchWord("startxref", true, false, 4096)) {
+ if (m_pSyntax->BackwardsSearchToWord("startxref", 4096)) {
m_SortedOffset.insert(m_pSyntax->GetPos());
m_pSyntax->GetKeyword();