Opened 10 months ago

Closed 5 months 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 10 months ago.
gdb-signed (14.8 KB) - added by Suhwan 10 months ago.

Download all attachments as: .zip

Change History (3)

Changed 10 months ago by Suhwan

Changed 10 months ago by Suhwan

comment:1 Changed 5 months ago by michael

  • Reproduced by developer set
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.