diff options
author | Robin Watts <robin.watts@artifex.com> | 2014-01-09 20:01:36 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-01-10 12:57:23 +0000 |
commit | f26bf94c5078d4ed498c283687cf19a24d71580c (patch) | |
tree | ca58957cdca964f805b388ea0d155d4f2f251de4 /source/pdf/pdf-encoding.c | |
parent | 3c2b088942d733ae1f82bc7310db28bed332a9ba (diff) | |
download | mupdf-f26bf94c5078d4ed498c283687cf19a24d71580c.tar.xz |
Bug 694885: Avoid stack overflow in ps_run.
The ifelse and if operators require special parsing where we convert
ps function streams to bytecode. If a malformed stream presents
if or ifelse without being preceded by the appropriate { ...} blocks
then throw an error.
This avoids us potentially calling ps_run recursively in an infinite
loop as happens with the test file in this bug.
5f091df77f6600d0927dc36777db2b93_signal_sigabrt_7ffff6d59425_6762_5545.pdf
Thanks to Mateusz Jurczyk and Gynvael Coldwind of the Google Security
Team for providing the fuzzing files.
Diffstat (limited to 'source/pdf/pdf-encoding.c')
0 files changed, 0 insertions, 0 deletions