summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-03-30 14:19:34 +0100
committerRobin Watts <robin.watts@artifex.com>2015-03-30 17:33:22 +0100
commit12dc2a8a678d0476ba692cd758f2b8164cf8e541 (patch)
tree0da64236ec841b6ad0dd48b2498138ca4dd03a20 /platform/x11
parentc6e63f40cdf49dbeac105ba9dcfa74643a8a1332 (diff)
downloadmupdf-12dc2a8a678d0476ba692cd758f2b8164cf8e541.tar.xz
Bug 695549: Avoid returning compressed buffer as uncompressed.
pdf_load_image_stream is supposed to return a buffer containing the uncompressed stream from an object (or, in the case of image streams where an fz_compression_params structure is supplied, a stream decompressed up to the point of the image format compression). We have an optimisation in pdf_load_image_stream to allow it to return the existing buffer from a cached object rather than reloading it again, but as bug 695549 points out, this breaks in the case where the cached stream is compressed. The suggested fix by the bug reporter (Stefan Klein) would work in that it would stop compressed streams being returned as uncompressed ones, but it is not perfect as it could lead to several copies of shortstoppable image streams being loaded (and for streams with null or empty array filters being mistaken for compressed ones). The fix here solves these cases too.
Diffstat (limited to 'platform/x11')
0 files changed, 0 insertions, 0 deletions