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

LibPDF: Permit comments at the end of a stream

This commit is contained in:
Kyle Pereira 2023-12-05 10:31:47 +00:00 committed by Andreas Kling
parent f621dc464b
commit e4b8d68039

View file

@ -519,6 +519,8 @@ PDFErrorOr<Vector<Operator>> Parser::parse_operators()
while (!m_reader.done()) {
parse_comment();
if (m_reader.done())
break;
auto ch = m_reader.peek();
if (is_operator_char_start(ch)) {
auto operator_start = m_reader.offset();