Opened 5 years ago

Closed 3 years ago

#8170 closed defect (worksforme)

Division by zero at libavutil/rational.h:105

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 libavutil/rational.h:105
How to reproduce:

% ./ffmpeg_g -t 2 -stream_loop 23 -y -r 96 -i c-m2-a46ce91d8975a017917156b8824f936e.png -loglevel 99 -map 0 -c copy -vframes 4 -aframes 86 -ab 516k -ac 4 -b:v 599k tmp.avi

ffmpeg version N-94957-g65589ad553 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

Attachments (2)

gdb-rational (15.9 KB ) - added by Suhwan 5 years ago.
c-m2-a46ce91d8975a017917156b8824f936e.png (5.2 KB ) - added by Suhwan 5 years ago.
poc

Download all attachments as: .zip

Change History (3)

by Suhwan, 5 years ago

Attachment: gdb-rational added

comment:1 by Michael Niedermayer, 3 years ago

Resolution: worksforme
Status: newclosed

Not reproducable with git master
also these floating point division by 0 bugs are very borderline in how far they represent bugs. IEEE 754 defines the result of such operations.
None the less if it would reproduce i would try to avoid the operation but as theres no such operation occuring anymore ...

Note: See TracTickets for help on using tickets.