diff options
author | Simon Bünzli <zeniko@gmail.com> | 2014-07-18 21:50:01 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-08-19 17:07:08 +0200 |
commit | b99e1d0f77203cc98a21970106670667b9682a6b (patch) | |
tree | aa3b139e844cd8a0edb879e52f6f3252288b0bab /source/pdf/pdf-repair.c | |
parent | db0268f1dc0f71b7a1e771a312148affa9ec0ca5 (diff) | |
download | mupdf-b99e1d0f77203cc98a21970106670667b9682a6b.tar.xz |
prevent buffer overflow and memory leak in xps-glyphs.c
xps_deobfuscate_font_resource assumes that a font has at least 32 bytes
of data required for deobfuscation. If a broken font has less data,
the buffer overflows.
Also, the data buffer is leaked when fz_new_font_from_buffer throws.
Diffstat (limited to 'source/pdf/pdf-repair.c')
0 files changed, 0 insertions, 0 deletions