diff options
author | Julian Offenhäuser <metalvoidzz@gmail.com> | 2022-08-20 09:24:14 +0200 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-09-17 10:07:14 +0100 |
commit | 633e1632d01a854301d7e08bdb4053188e2be6e9 (patch) | |
tree | 8058ac3bae96f54b6bbba25358dfbc9a4cb8cd64 /Userland/Libraries | |
parent | 65e83bed531d5b3b62e957390acdeba124802820 (diff) | |
download | serenity-633e1632d01a854301d7e08bdb4053188e2be6e9.zip |
LibPDF: Allow whitespace other than EOL after an object marker
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibPDF/Parser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibPDF/Parser.cpp b/Userland/Libraries/LibPDF/Parser.cpp index 3df89edb17..64f1a933e6 100644 --- a/Userland/Libraries/LibPDF/Parser.cpp +++ b/Userland/Libraries/LibPDF/Parser.cpp @@ -139,8 +139,7 @@ PDFErrorOr<NonnullRefPtr<IndirectValue>> Parser::parse_indirect_value(u32 index, if (!m_reader.matches("obj")) return error("Expected \"obj\" at beginning of indirect value"); m_reader.move_by(3); - if (m_reader.matches_eol()) - m_reader.consume_eol(); + m_reader.consume_whitespace(); push_reference({ index, generation }); auto value = TRY(parse_value()); |