commit | 944aa8e3c4ea827c57d7bb9125f39611eb67ede1 | [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:19:35 2015 -0500 |
tree | 4aa82f371dec09b49075494f2e26c8f1371be627 | |
parent | 22eb6c2bf33d0837cb414183b0b5d72aa22cbfba [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.