]> granicus.if.org Git - libjpeg-turbo/commit
Fix rare bug: right shift by a negative # of bits
authorDRC <information@libjpeg-turbo.org>
Tue, 21 Jul 2015 21:43:39 +0000 (16:43 -0500)
committerDRC <information@libjpeg-turbo.org>
Wed, 29 Jul 2015 22:19:15 +0000 (17:19 -0500)
commit2a0b4ac3372c4dbe1c710ef2d9f15b96c4c9166f
tree3e9d2c4cc7718a34de2a05956c38bbb864d0b007
parent9993410e445c368e1b8ab003273dca9aa4f6f5fe
parent944aa8e3c4ea827c57d7bb9125f39611eb67ede1
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.
jdhuff.c