aboutsummaryrefslogtreecommitdiff
path: root/jdcolor.c
diff options
context:
space:
mode:
authordcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db>2015-05-06 22:40:25 +0000
committerdcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db>2015-05-06 22:40:25 +0000
commit1d92fb0cbcace5a514a4201ac3f22df8d4faab04 (patch)
tree72aaf65f64eec7915add7d2208edabc117227f1e /jdcolor.c
parentfe906919472ac45837ea1776795f42cc62d673ab (diff)
Fix a bug in the 64-bit Huffman encoder that Google discovered when encoding some very specific (and proprietary) aerial images using quality=98, an optimized Huffman table, and the ISLOW DCT. These images were causing the Huffman bit buffer to overflow, because the code for encoding the DC coefficient was using the equivalent of the 32-bit version of EMIT_BITS(). Thus, when 64-bit code was used, the DC coefficient code was not properly checking how many bits were in the buffer before attempting to add more bits to it. This issue appears to have existed in all versions of libjpeg-turbo.HEADmaster
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1546 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'jdcolor.c')
0 files changed, 0 insertions, 0 deletions