[FFmpeg-trac] #8238(undetermined:new): left shift of 255 by 24 places cannot be represented in type 'int' at libavfilter/vsrc_testsrc.c:994

FFmpeg trac at avcodec.org
Thu Oct 10 22:00:00 EEST 2019


#8238: left shift of 255 by 24 places cannot be represented in type 'int' at
libavfilter/vsrc_testsrc.c:994
-------------------------------------+-------------------------------------
             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 255 by 24 places cannot be represented in type
 'int' at libavfilter/vsrc_testsrc.c:994
 {{{
 libavfilter/vsrc_testsrc.c:994:93: runtime error: left shift of 255 by 24
 places cannot be represented in type 'int'
 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
 libavfilter/vsrc_testsrc.c:994:93 in
 }}}
 How to reproduce:
 {{{
 % ffmpeg_g -t 3 -y -i $PoC -filter_complex rgbtestsrc -target dv -loglevel
 0 -map 0 -c:a:6 sgi -disposition:s:7 mjpeg -vframes 68 -r 47 -ar 22050
 tmp.mpegtsraw

 ffmpeg version N-95291-g5345965b3f Copyright (c) 2000-2019 the FFmpeg
 developers
   built with clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
   configuration: --cc=clang --cxx=clang++ --ld=clang --enable-debug
 --toolchain=clang-usan
 }}}

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


More information about the FFmpeg-trac mailing list