diff options
author | Julian Offenhäuser <offenhaeuser@protonmail.com> | 2022-10-27 19:56:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-19 15:42:08 +0100 |
commit | becd648a781848b5570b134169fb77c4dee5c47b (patch) | |
tree | 57adf495a80dd9427d472263cb01dadfad5c94af | |
parent | 0308300b78fcacd1c8ab5c193d870dc9874c1e6e (diff) | |
download | serenity-becd648a781848b5570b134169fb77c4dee5c47b.zip |
LibPDF: Parse hexadecimal values in name objects correctly
-rw-r--r-- | Userland/Libraries/LibPDF/Parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibPDF/Parser.cpp b/Userland/Libraries/LibPDF/Parser.cpp index eadc5e5053..61d1f51bef 100644 --- a/Userland/Libraries/LibPDF/Parser.cpp +++ b/Userland/Libraries/LibPDF/Parser.cpp @@ -214,6 +214,7 @@ PDFErrorOr<NonnullRefPtr<NameObject>> Parser::parse_name() break; if (m_reader.matches('#')) { + m_reader.consume(); int hex_value = 0; for (int i = 0; i < 2; i++) { auto ch = m_reader.consume(); |