mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibPDF: Tolerate comments after dict values
Makes 0000607.pdf from 0000.zip from the pdfa dataset load.
This commit is contained in:
parent
2086b8df9c
commit
6153dd7b84
Notes:
sideshowbarker
2024-07-17 08:36:27 +09:00
Author: https://github.com/nico
Commit: 6153dd7b84
Pull-request: https://github.com/SerenityOS/serenity/pull/21557
1 changed files with 1 additions and 0 deletions
|
@ -421,6 +421,7 @@ PDFErrorOr<NonnullRefPtr<DictObject>> Parser::parse_dict()
|
|||
while (!m_reader.done()) {
|
||||
if (m_reader.matches(">>"))
|
||||
break;
|
||||
parse_comment();
|
||||
auto name = TRY(parse_name())->name();
|
||||
auto value = TRY(parse_value());
|
||||
map.set(name, value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue