diff options
author | Robin Watts <robin@peeved.(none)> | 2014-01-17 11:16:32 -0800 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-01-17 23:57:50 +0000 |
commit | 01f0a0db15faf4bffaa2556ced74868572dac7f5 (patch) | |
tree | 53c523d20be45db2edac3d96e50a8a5b1e4e4a77 /source/tools | |
parent | 63869ca1b53eb485dc0c8b5e53679825826ec076 (diff) | |
download | mupdf-01f0a0db15faf4bffaa2556ced74868572dac7f5.tar.xz |
Bug 694899: Avoid using invalid gstate pointer.
When we call pdf_begin_group, this can go away and do lots of
drawing. This can result in the gstate stack growing, which can
involve a realloc. Any gstate pointer we are holding must therefore
be recalculated after such a call.
The neatest way to do this is to get pdf_begin_group to return
the gstate pointer, thus making it hard to forget to do.
This solves:
e2a1dda5393f4cb8a446fd8edd9d94f9_asan_heap-uaf_b938cf_2075_2393.pdf
Thanks to Mateusz Jurczyk and Gynvael Coldwind of the Google Security
Team for providing the example files.
Diffstat (limited to 'source/tools')
0 files changed, 0 insertions, 0 deletions