diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-01-26 13:36:16 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-01-26 13:36:16 +0000 |
commit | 50dbc1a356577f3df15a876f6adb716dea29bdc5 (patch) | |
tree | 22b632b4992feb9c9d5e734d999509cccebe7a49 /xps | |
parent | 227b68bb1a6d76f4224985af1993ae17e2bf0931 (diff) | |
download | mupdf-50dbc1a356577f3df15a876f6adb716dea29bdc5.tar.xz |
Fix possible SEGV/assert in downscaler.
On extreme downscales, the weights for each pixel can all round to
zero; this results in no weights being stored at all, and causes
either an exception or a SEGV. The simple fix is to ensure that the
first pixel that's actually in range (and there will always be one)
always has a weight of at least 1.
Thanks to malc for finding the test cases that lead to this bugfix.
Diffstat (limited to 'xps')
0 files changed, 0 insertions, 0 deletions