diff options
Diffstat (limited to 'core/fpdfapi/parser')
-rw-r--r-- | core/fpdfapi/parser/cpdf_syntax_parser.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/fpdfapi/parser/cpdf_syntax_parser.cpp b/core/fpdfapi/parser/cpdf_syntax_parser.cpp index 3acad525f7..89bf991cd4 100644 --- a/core/fpdfapi/parser/cpdf_syntax_parser.cpp +++ b/core/fpdfapi/parser/cpdf_syntax_parser.cpp @@ -477,22 +477,22 @@ std::unique_ptr<CPDF_Object> CPDF_SyntaxParser::GetObjectBodyInternal( std::unique_ptr<CPDF_Dictionary> pDict = pdfium::MakeUnique<CPDF_Dictionary>(m_pPool); while (1) { - ByteString word = GetNextWord(nullptr); - if (word.IsEmpty()) + ByteString inner_word = GetNextWord(nullptr); + if (inner_word.IsEmpty()) return nullptr; - FX_FILESIZE SavedPos = m_Pos - word.GetLength(); - if (word == ">>") + FX_FILESIZE SavedPos = m_Pos - inner_word.GetLength(); + if (inner_word == ">>") break; - if (word == "endobj") { + if (inner_word == "endobj") { m_Pos = SavedPos; break; } - if (word[0] != '/') + if (inner_word[0] != '/') continue; - ByteString key = PDF_NameDecode(word.AsStringView()); + ByteString key = PDF_NameDecode(inner_word.AsStringView()); if (key.IsEmpty() && parse_type == ParseType::kLoose) continue; |