diff options
author | Robin Watts <robin.watts@artifex.com> | 2014-01-17 13:12:07 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-01-17 13:47:48 +0000 |
commit | 207c58162fe0bece0412325d3dfefe3bd12528ba (patch) | |
tree | b11c8cc5f1a6162d45e9d7d70cfd190784585c0c /source/tools/mudraw.c | |
parent | 0ae113cfe386e87234df5581d84a10d4c60502e5 (diff) | |
download | mupdf-207c58162fe0bece0412325d3dfefe3bd12528ba.tar.xz |
Bug 694897: Fix valgrind issues with versions
If the /Version is a single character string (say "s") then the
current code for converting this in pdf_init_document reads off
the end of the string.
Simple fix is to use fz_atof instead.
Same fix for reading the PDF version normally.
This solves:
53b830f849d028fb2d528520716e157a_asan_heap-oob_478692_5259_4534.pdf
Thanks to Mateusz Jurczyk and Gynvael Coldwind of the Google Security
Team for providing the example files.
Diffstat (limited to 'source/tools/mudraw.c')
0 files changed, 0 insertions, 0 deletions