summaryrefslogtreecommitdiff
path: root/thirdparty
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-09-13 17:48:47 +0800
committerSebastian Rasmussen <sebras@gmail.com>2018-09-13 19:39:49 +0800
commit16f293dc292f46a16659a033ea728be2562dce19 (patch)
tree613ef3412e6d2aceed0d6721a78208f8617c36f2 /thirdparty
parent1ec022b2c58c361a19c18a15c2512fa06e5c328d (diff)
downloadmupdf-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