commit | cf0e58de5337341000ae7f3dfec350eaaec074de | [log] [tgz] |
---|---|---|
author | DRC <information@libjpeg-turbo.org> | Tue Jul 21 16:43:39 2015 -0500 |
committer | DRC <information@libjpeg-turbo.org> | Wed Jul 29 17:18:18 2015 -0500 |
tree | b96d377b265d23bf1737368e118c60c8e10e69bc | |
parent | b6590d67b3277506ed0ddef8de0e9c18db38ba12 [diff] | |
parent | 2a0b4ac3372c4dbe1c710ef2d9f15b96c4c9166f [diff] |
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.