Opened 5 years ago

Closed 4 years ago

#8142 closed defect (fixed)

signed integer overflow in fftools/ffmpeg.c

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

Description

Summary of the bug:
There's a signed integer overflow bug in fftools/ffmpeg.c:4238:34:

fftools/ffmpeg.c:4238:34: runtime error: signed integer overflow: -9223372036854775808 - 9223372036854775807 cannot be represented in type 'long'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior fftools/ffmpeg.c:4238:34 in 

How to reproduce:

% ./ffmpeg_g -stream_loop 21 -y -i Silent_Mobius-OpenDivX-200-sound.avi -target vcd -map 0 -c copy -aframes 100 -ar 48000 -ac 7 -b:v 599k output/tmp.nuv
ffmpeg version N-94887-ge55018ee11 (git master)
built on ... ubuntu 18.04 with clang-6 and UBSAN option.

Attachments (2)

Silent_Mobius-OpenDivX-200-sound.avi (966.0 KB ) - added by Suhwan 5 years ago.
gdb-signed (14.8 KB ) - added by Suhwan 5 years ago.

Download all attachments as: .zip

Change History (3)

by Suhwan, 5 years ago

Attachment: gdb-signed added

comment:1 by Michael Niedermayer, 4 years ago

Reproduced by developer: set
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.