1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

LibPDF: Parse hexadecimal values in name objects correctly

This commit is contained in:
Julian Offenhäuser 2022-10-27 19:56:21 +02:00 committed by Andreas Kling
parent 0308300b78
commit becd648a78

View file

@ -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();