diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-05-03 12:37:07 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-03 19:50:58 +0000 |
commit | 0578244a1a68b413e0843b0ecb9c434bd7b6c8af (patch) | |
tree | 624b1b24759a825e72fc7bf94996d068d86ae497 /core/fpdfapi/parser/cpdf_parser.cpp | |
parent | 746babded81e9de3fc132fd670386382c031fa74 (diff) | |
download | pdfium-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.cpp | 2 |
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(); |