Opened 5 years ago

Closed 3 years ago

#8191 closed defect (fixed)

Division by zero at libavcodec/svq1enc.c

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 is division by zero at libavcodec/svq1enc.c

libavcodec/svq1enc.c:490:24: runtime error: division by zero
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/svq1enc.c:490:24 in

How to reproduce:

% ./ffmpeg_g -t 2 -stream_loop 4 -y -i vp80-05-sharpness-1439.webp -target dv50 -loglevel 0 -map 0 -c copy -c:v:211 vp8_v4l2m2m -c:v:0 svq1 -vframes 82 -aframes 98 -r 20 -ab 841k -ar 48000 -ac 9 tmp.g729

ffmpeg version N-94982-gea673a0edb 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-asan

Attachments (2)

gdb-svq (31.5 KB ) - added by Suhwan 5 years ago.
vp80-05-sharpness-1439.webp (19.6 KB ) - added by Suhwan 5 years ago.
poc

Download all attachments as: .zip

Change History (3)

by Suhwan, 5 years ago

Attachment: gdb-svq added

by Suhwan, 5 years ago

Attachment: vp80-05-sharpness-1439.webp added

poc

comment:1 by Elon Musk, 3 years ago

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