[FFmpeg-trac] #8220(undetermined:new): left shift of 1 by 31 places cannot be represented in type 'int' in libavcodec/cinepakenc.c
FFmpeg
trac at avcodec.org
Sat Oct 5 14:21:47 EEST 2019
#8220: left shift of 1 by 31 places cannot be represented in type 'int' in
libavcodec/cinepakenc.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 1 by 31 places cannot be represented in type
'int' in libavcodec/cinepakenc.c
{{{
libavcodec/cinepakenc.c:602:32: runtime error: left shift of 1 by 31
places cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
libavcodec/cinepakenc.c:602:32 in
}}}
How to reproduce:
{{{
% ffmpeg_g -t 3 -stream_loop 23 -y -i $PoC -loglevel 0 -map 0 -c copy
-c:v:0 cinepak -c:v:52 text -disposition:s:8 adpcm_ms -disposition:v:213
r10k -vframes 95 -aframes 2 -ab 104k -strict 3 tmp.avs2
ffmpeg version N-95199-g9847380f5f 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/8220>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list