commit | 74b9f609a26655ed31169545b7b41c712b5c380a | [log] [tgz] |
---|---|---|
author | DRC <information@libjpeg-turbo.org> | Tue Jul 21 16:43:39 2015 -0500 |
committer | DRC <information@libjpeg-turbo.org> | Mon Jul 27 03:43:40 2015 -0500 |
tree | 38dc2095d2160736088fbed55405a2673c53718a | |
parent | 739edeb8a647d428514da522d730a955ff0c1c5c [diff] | |
parent | cf0e58de5337341000ae7f3dfec350eaaec074de [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.