Opened 5 years ago

Closed 5 years ago

#8164 closed defect (fixed)

left shift of 64 by 25 places cannot be represented in type 'int' in libavformat/sdsdec.c:46

Reported by: Suhwan Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: ubsan
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
There's left shift of 64 by 25 places cannot be represented in type 'int' in libavformat/sdsdec.c:46

How to reproduce:

% ./ffmpeg_g -stream_loop 0 -y -r 5 -i sds-pcms8.sds -loglevel 99 -map 0 -c copy -c: v:4 mp2 -c: v:142 xsub -disposition: v:1 pcx -disposition: v:59 yuv4 -aframes 14 -ar 48000 -b:v 332k -strict 0 output/tmp.xwd_pipe

ffmpeg version N-94943-g1db6e47e85
built on ubuntu 18.04 with clang-6 and UBSAN option.

Attachments (2)

gdb-sdsdec46 (5.8 KB ) - added by Suhwan 5 years ago.
sds-pcms8.sds (38.8 KB ) - added by Suhwan 5 years ago.
poc

Download all attachments as: .zip

Change History (3)

by Suhwan, 5 years ago

Attachment: gdb-sdsdec46 added

by Suhwan, 5 years ago

Attachment: sds-pcms8.sds added

poc

comment:1 by Elon Musk, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.