[FFmpeg-trac] #8217(undetermined:new): left shift of negative value bug in libavcodec/ra144enc.c

FFmpeg trac at avcodec.org
Sat Oct 5 13:40:36 EEST 2019


#8217: left shift of negative value bug in libavcodec/ra144enc.c
-------------------------------------+-------------------------------------
             Reporter:  Suhwan       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:  ubsan        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 There is a left shift of negative value bug in libavcodec/ra144enc.c
 {{{
 libavcodec/ra144enc.c:480:69: runtime error: left shift of negative value
 -2682
 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
 libavcodec/ra144enc.c:480:69 in
 libavcodec/lpc.h:189:15: runtime error: division by zero
 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
 libavcodec/lpc.h:189:15 in
 }}}

 How to reproduce:
 {{{
 % ffmpeg_g -y -r 70 -i $PoC -loglevel 0  -c:a:0 real_144 -c:a:48 alias_pix
 -disposition:v:122 flashsv2  tmp.aptx

 ffmpeg version N-95199-g9847380f5f Copyright (c) 2000-2019 the FFmpeg
 developers
 built with clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final),
 --enable-debug --toolchain=clang-asan
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8217>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list