From: DRC Date: Tue, 21 Jul 2015 21:43:39 +0000 (-0500) Subject: Fix rare bug: right shift by a negative # of bits X-Git-Tag: 1.4.2~14^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a0b4ac3372c4dbe1c710ef2d9f15b96c4c9166f;p=libjpeg-turbo Fix rare bug: right shift by a negative # of bits Under very rare circumstances, decompressing specific corrupt JPEG images would create a situation whereby GET_BITS(1) was invoked from within HUFF_DECODE_FAST() when bits_left=0. This produced a right shift by a negative number of bits, which is undefined in C. --- 2a0b4ac3372c4dbe1c710ef2d9f15b96c4c9166f