8e9cef2e6f5156c4b055a04a8f979b7291fc6b7a |
|
21-Sep-2015 |
DRC <information@libjpeg-turbo.org> |
Fix various issues reported by the UB sanitizers Most of these involved left shifting a negative number, which is technically undefined (although every modern compiler I'm aware of will implement this by treating the signed integer as a 2's complement unsigned integer-- the LEFT_SHIFT() macro just makes this behavior explicit in order to shut up ubsan.) This also fixes a couple of non-issues in the entropy codecs, whereby the sanitizer reported an out-of-bounds index in the 4th argument of jpeg_make_d_derived_tbl(). In those cases, the index was actually out of bounds (caused by a malformed JPEG image), but jpeg_make_d_derived_tbl() would have caught the error and aborted prior to actually using the invalid address. Here again, the fix was to make our intentions explicit so as to shut up ubsan.
/external/libjpeg-turbo/jfdctint.c
|
e5eaf37440b8e337ab150c017df7c03faf846c51 |
|
09-May-2014 |
DRC <dcommander@users.sourceforge.net> |
Convert tabs to spaces in the libjpeg code and the SIMD code (TurboJPEG retains the use of tabs for historical reasons. They were annoying in the libjpeg code primarily because they were not consistently used and because they were used to format as well as indent the code. In the case of TurboJPEG, tabs are used just to indent the code, so even if the editor assumes a different tab width, the code will still be readable.) git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1278 632fc199-4ca6-4c93-a231-07263d6284db
/external/libjpeg-turbo/jfdctint.c
|
489583f5165e05d37302e8eeec58104ea0109127 |
|
07-Feb-1996 |
Thomas G. Lane <tgl@netcom.com> |
The Independent JPEG Group's JPEG software v6a
/external/libjpeg-turbo/jfdctint.c
|
36a4ccccd33f5cc9df62949554af87129ced7f84 |
|
24-Sep-1994 |
Thomas G. Lane <tgl@netcom.com> |
The Independent JPEG Group's JPEG software v5
/external/libjpeg-turbo/jfdctint.c
|