LibPDF: Allow numbers to start with whitespace

This commit is contained in:
Julian Offenhäuser 2022-11-26 23:47:11 +01:00 committed by Linus Groh
parent ab57fde8ec
commit a37f3390dc
Notes: sideshowbarker 2024-07-17 03:05:16 +09:00

View file

@ -170,6 +170,8 @@ PDFErrorOr<NonnullRefPtr<IndirectValue>> Parser::parse_indirect_value()
PDFErrorOr<Value> Parser::parse_number()
{
m_reader.consume_whitespace();
size_t start_offset = m_reader.offset();
bool is_float = false;
bool consumed_digit = false;