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:
parent
f621dc464b
commit
e4b8d68039
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue