summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-appearance.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2014-01-08 17:17:45 +0000
committerRobin Watts <robin.watts@artifex.com>2014-01-08 19:20:54 +0000
commit32f9ae732fc4f33ef2644a09b05d8ad35bc140ca (patch)
treef0bb7e189e6ff05377f22c42bec6b7987b9b2a17 /source/pdf/pdf-appearance.c
parentfb20d5b74fcd9aac44b90a475ddb3b4c2f55ae9e (diff)
downloadmupdf-32f9ae732fc4f33ef2644a09b05d8ad35bc140ca.tar.xz
Fix fuzzing bug due to float representation limitations.
The gel bbox was being stored internally as floats (despite only holding ints). This means that as numbers get large the bbox can become approximate, rather than exact. If the bbox becomes smaller than it should, this causes crashes in the scanline filling code. This is seen with: tests_private/fuzzing/mupdf2/17f8aee51ac776994af0b36195cdadd7_signal_sigsegv_5607be_7308_5912.pdf The solution is simply to use ints rather than floats. Thanks to Mateusz Jurczyk and Gynvael Coldwind of the Google Security Team for providing the example files.
Diffstat (limited to 'source/pdf/pdf-appearance.c')
0 files changed, 0 insertions, 0 deletions