mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:17:45 +00:00
LibPDF: Do not assume value is an object in parse_indirect_value
This commit is contained in:
parent
e401ff0802
commit
8c7ebc7a3f
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())
|
if (matches_eol())
|
||||||
consume_eol();
|
consume_eol();
|
||||||
auto value = parse_value();
|
auto value = parse_value();
|
||||||
VERIFY(value.is_object());
|
|
||||||
VERIFY(m_reader.matches("endobj"));
|
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()
|
NonnullRefPtr<IndirectValue> Parser::parse_indirect_value()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue