mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibPDF: Do not assume value is an object in parse_indirect_value
This commit is contained in:
parent
e401ff0802
commit
8c7ebc7a3f
Notes:
sideshowbarker
2024-07-18 17:26:54 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/8c7ebc7a3f0 Pull-request: https://github.com/SerenityOS/serenity/pull/7436 Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 2 deletions
|
@ -339,10 +339,9 @@ NonnullRefPtr<IndirectValue> Parser::parse_indirect_value(int index, int generat
|
|||
if (matches_eol())
|
||||
consume_eol();
|
||||
auto value = parse_value();
|
||||
VERIFY(value.is_object());
|
||||
VERIFY(m_reader.matches("endobj"));
|
||||
|
||||
return make_object<IndirectValue>(index, generation, value.as_object());
|
||||
return make_object<IndirectValue>(index, generation, value);
|
||||
}
|
||||
|
||||
NonnullRefPtr<IndirectValue> Parser::parse_indirect_value()
|
||||
|
|
Loading…
Reference in a new issue