$ make check 2>&1 | asan_symbolize.py
/usr/local/bin/clang -fsanitize=address -o cjpeg cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o cdjpeg.o libjpeg.a /usr/local/lib/clang/3.3/lib/linux/libclang_rt.full-x86_64.a /usr/local/lib/clang/3.3/lib/linux/libclang_rt.ubsan-x86_64.a
/usr/local/bin/clang -g3 -fsanitize=address -fsanitize=undefined -I. -c -o djpeg.o djpeg.c
/usr/local/bin/clang -g3 -fsanitize=address -fsanitize=undefined -I. -c -o wrppm.o wrppm.c
/usr/local/bin/clang -g3 -fsanitize=address -fsanitize=undefined -I. -c -o wrgif.o wrgif.c
/usr/local/bin/clang -g3 -fsanitize=address -fsanitize=undefined -I. -c -o wrtarga.o wrtarga.c
/usr/local/bin/clang -g3 -fsanitize=address -fsanitize=undefined -I. -c -o wrrle.o wrrle.c
/usr/local/bin/clang -g3 -fsanitize=address -fsanitize=undefined -I. -c -o wrbmp.o wrbmp.c
/usr/local/bin/clang -g3 -fsanitize=address -fsanitize=undefined -I. -c -o rdcolmap.o rdcolmap.c
/usr/local/bin/clang -fsanitize=address -o djpeg djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o cdjpeg.o libjpeg.a /usr/local/lib/clang/3.3/lib/linux/libclang_rt.full-x86_64.a /usr/local/lib/clang/3.3/lib/linux/libclang_rt.ubsan-x86_64.a
/usr/local/bin/clang -g3 -fsanitize=address -fsanitize=undefined -I. -c -o jpegtran.o jpegtran.c
/usr/local/bin/clang -g3 -fsanitize=address -fsanitize=undefined -I. -c -o transupp.o transupp.c
/usr/local/bin/clang -fsanitize=address -o jpegtran jpegtran.o rdswitch.o cdjpeg.o transupp.o libjpeg.a /usr/local/lib/clang/3.3/lib/linux/libclang_rt.full-x86_64.a /usr/local/lib/clang/3.3/lib/linux/libclang_rt.ubsan-x86_64.a
rm -f testout*
./djpeg -dct int -ppm -outfile testout.ppm ./testorig.jpg
jdhuff.c:357:32: runtime error: left shift of 68369189789394473 by 8 places cannot be represented in type 'bit_buf_type' (aka 'long')
jidctint.c:216:22: runtime error: left shift of negative value -648
jidctint.c:217:22: runtime error: left shift of negative value -648
jidctint.c:186:69: runtime error: left shift of negative value -12
jidctint.c:318:50: runtime error: left shift of negative value -2525
jidctint.c:319:50: runtime error: left shift of negative value -2525
./djpeg -dct int -bmp -colors 256 -outfile testout.bmp ./testorig.jpg
jdhuff.c:357:32: runtime error: left shift of 68369189789394473 by 8 places cannot be represented in type 'bit_buf_type' (aka 'long')
jidctint.c:216:22: runtime error: left shift of negative value -648
jidctint.c:217:22: runtime error: left shift of negative value -648
jidctint.c:186:69: runtime error: left shift of negative value -12
jidctint.c:318:50: runtime error: left shift of negative value -2525
jidctint.c:319:50: runtime error: left shift of negative value -2525
./cjpeg -dct int -outfile testout.jpg ./testimg.ppm
jfdctint.c:173:45: runtime error: left shift of negative value -631
jfdctint.c:174:45: runtime error: left shift of negative value -1
jchuff.c:328:16: runtime error: left shift of 68369189789368320 by 8 places cannot be represented in type 'INT32' (aka 'long')
./djpeg -dct int -ppm -outfile testoutp.ppm ./testprog.jpg
jdphuff.c:336:32: runtime error: left shift of negative value -41
jdhuff.c:357:32: runtime error: left shift of 68349010893103810 by 8 places cannot be represented in type 'bit_buf_type' (aka 'long')
jdphuff.c:404:49: runtime error: left shift of negative value -1
jdphuff.c:496:17: runtime error: left shift of negative value -1
jidctint.c:216:22: runtime error: left shift of negative value -648
jidctint.c:217:22: runtime error: left shift of negative value -648
jidctint.c:186:69: runtime error: left shift of negative value -12
jidctint.c:318:50: runtime error: left shift of negative value -2525
jidctint.c:319:50: runtime error: left shift of negative value -2525
./cjpeg -dct int -progressive -opt -outfile testoutp.jpg ./testimg.ppm
jfdctint.c:173:45: runtime error: left shift of negative value -631
jfdctint.c:174:45: runtime error: left shift of negative value -1
jcphuff.c:257:16: runtime error: left shift of 68349010935152640 by 8 places cannot be represented in type 'INT32' (aka 'long')
./jpegtran -outfile testoutt.jpg ./testprog.jpg
jdphuff.c:336:32: runtime error: left shift of negative value -41
jdhuff.c:357:32: runtime error: left shift of 68349010893103810 by 8 places cannot be represented in type 'bit_buf_type' (aka 'long')
jdphuff.c:404:49: runtime error: left shift of negative value -1
jdphuff.c:496:17: runtime error: left shift of negative value -1
jchuff.c:328:16: runtime error: left shift of 68369189789368320 by 8 places cannot be represented in type 'INT32' (aka 'long')
cmp ./testimg.ppm testout.ppm
cmp ./testimg.bmp testout.bmp
cmp ./testimg.jpg testout.jpg
cmp ./testimg.ppm testoutp.ppm
cmp ./testimgp.jpg testoutp.jpg
cmp ./testorig.jpg testoutt.jpg
$
Anonymous