Fix incorrect images when cropping without stretch.
authorCarl Hetherington <cth@carlh.net>
Mon, 4 Nov 2019 15:38:14 +0000 (16:38 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 4 Nov 2019 15:38:14 +0000 (16:38 +0100)
commit7b0372776ac4da6a8e4ff29f41a4f08b9b4de506
tree18306caff0a8c2ded2669d27cd2c179fc56869fd
parent25d968fdcf1abada4bd7bbcb8c72eeebda73b134
Fix incorrect images when cropping without stretch.
Always overallocate images so that Image::crop_scale_window is always
safe from over-reading buffers.  Relates to #1654 and probably #1653.
src/lib/image.cc
src/lib/image.h
src/lib/j2k_image_proxy.cc
test/image_test.cc
test/test.cc
test/test.h