#8145: left shift of negative value bugs in libavcodec/aptx.c -------------------------------------+------------------------------------- Reporter: Suhwan | Type: defect Status: new | Priority: important Component: | Version: git- undetermined | master Keywords: ubsan | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Summary of the bug: There're 6 left shift of negative value bugs and a left shift of large number bug in libavcodec/aptx.c {{{ libavcodec/aptx.c:497:38: runtime error: left shift of 622133197 by 23 places cannot be represented in type 'int32_t' (aka 'int') libavcodec/aptx.c:767:90: runtime error: left shift of negative value -21 libavcodec/aptx.c:762:38: runtime error: left shift of negative value -81503 libavcodec/aptx.c:804:52: runtime error: left shift of negative value -1 libavcodec/aptx.c:833:48: runtime error: left shift of negative value -24576 libavcodec/aptx.c:483:72: runtime error: left shift of 251900672 by 4 places cannot be represented in type 'int32_t' (aka 'int') libavcodec/aptx.c:495:12: runtime error: left shift of negative value -10715331219032 }}}
How to reproduce: {{{ % ./ffmpeg_g -y -i Choral.mpc -map 0 -vframes 38 -aframes 109 output/tmp.aptx ffmpeg version N-94887-ge55018ee11 (git master) built on ... ubuntu 18.04 with clang-6 and UBSAN option. }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/8145> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org https://ffmpeg.org/mailman/listinfo/ffmpeg-trac To unsubscribe, visit link above, or email ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".