summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_parser.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-05-03 12:37:07 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-05-03 19:50:58 +0000
commit0578244a1a68b413e0843b0ecb9c434bd7b6c8af (patch)
tree624b1b24759a825e72fc7bf94996d068d86ae497 /core/fpdfapi/parser/cpdf_parser.cpp
parent746babded81e9de3fc132fd670386382c031fa74 (diff)
downloadpdfium-0578244a1a68b413e0843b0ecb9c434bd7b6c8af.tar.xz
CPDF_SyntaxParser::SearchWord() is always backwards and for whole-words
Change-Id: Ic31d9cda5e919a754162e14e69cb63671a3fe8b9 Reviewed-on: https://pdfium-review.googlesource.com/4794 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
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();