diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-09-13 17:48:47 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2018-09-13 19:39:49 +0800 |
commit | 16f293dc292f46a16659a033ea728be2562dce19 (patch) | |
tree | 613ef3412e6d2aceed0d6721a78208f8617c36f2 /thirdparty | |
parent | 1ec022b2c58c361a19c18a15c2512fa06e5c328d (diff) | |
download | mupdf-16f293dc292f46a16659a033ea728be2562dce19.tar.xz |
Bug 699769: Fix bugs in upsampling code for JPX images.
The upsampling code in the JPX decode attempted to guess a
suitable upsampling factor. The guessed factor was wrong,
causing writes of samples outside of the decoded image buffer.
Simply limiting the coordinates to the image buffer would
not suffice because the factor was wrong for every upsampled
row of pixels. openjpeg does provide an upsampling factor,
so use that instead and also take the component offsets into
account when decoding components into the pixmap. Combined
this resolves the issue that previously triggered ASAN.
Thanks to oss-fuzz for reporting.
Diffstat (limited to 'thirdparty')
0 files changed, 0 insertions, 0 deletions