summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-colorspace.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2014-01-17 13:12:07 +0000
committerRobin Watts <robin.watts@artifex.com>2014-01-17 13:47:48 +0000
commit207c58162fe0bece0412325d3dfefe3bd12528ba (patch)
treeb11c8cc5f1a6162d45e9d7d70cfd190784585c0c /source/pdf/pdf-colorspace.c
parent0ae113cfe386e87234df5581d84a10d4c60502e5 (diff)
downloadmupdf-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/pdf/pdf-colorspace.c')
0 files changed, 0 insertions, 0 deletions