Bug#734238: Fix for CVE-2013-6045 breaks decoding of chroma-subsampled images

2014-01-06 Thread Raphael Geissert
Hi, For further reference, this is the change made with segfault1.dpatch I'm not sure how it is that openjpeg even works with that image, as there are some parts of the code that really assume that all components have at least the number of blocks of the first component. Possibly making it write

Bug#734238: Fix for CVE-2013-6045 breaks decoding of chroma-subsampled images

2014-01-06 Thread Benjamin Gilbert
The slide file at [1] contains 4,569 chroma-subsampled J2K images, and the file at [2] contains 25,120. The below program will decode every image into memory via OpenSlide. It executes Valgrind-clean against both slides on 1.3+dfsg-4.6. The functionality does work, and people use it.