diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2012-08-04 16:35:09 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2012-08-06 13:54:31 +0200 |
commit | 966ae9dc4ca3edce4ff592028baeb69fcebddeb7 (patch) | |
tree | b20a87aeaac1ad785f51f21ae8e1cbc4e1af9435 /apps | |
parent | 16628b1419a260874f92b71263cc179c419f33b6 (diff) | |
download | mupdf-966ae9dc4ca3edce4ff592028baeb69fcebddeb7.tar.xz |
Fix bug where too many content stream operands cause eternal loop
Once enough operands were push on top of the operand stack an
exception would be thrown. The exception handling ignored the
exception, printed a warning and continued processing the content
stream. Unfortunately the token was never consumed, so once the
interpreter retried parsing the stream it encountered the same token
again, causing the loop and thus a stack overflow. Now, make sure each
token is consumed before throwing a new exception thereby breaking the
eternal loop and letting pdfs with excessive operands be rendered,
albeit with both errors and a warning.
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions