#8201 closed defect (fixed)
outside the range of int at libavcodec/mpegvideo_enc.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:
libavcodec/mpegvideo_enc.c:497:37: runtime error: 1.66789e+11 is outside the range of representable values of type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/mpegvideo_enc.c:497:37 in
#0 ff_mpv_encode_init (avctx=<optimized out>) at libavcodec/mpegvideo_enc.c:494
#1 0x0000000005090e4e in avcodec_open2 (avctx=<optimized out>,
codec=0x9ffc7c0 <ff_flv_encoder>, options=0x616000018de0)
at libavcodec/utils.c:935
#2 0x000000000061c78c in init_output_stream (ost=<optimized out>,
error=<optimized out>, error_len=1024) at fftools/ffmpeg.c:3517
#3 0x00000000006552db in reap_filters (flush=0) at fftools/ffmpeg.c:1442
#4 0x00000000005e7433 in transcode_step () at fftools/ffmpeg.c:4648
#5 transcode () at fftools/ffmpeg.c:4692
#6 0x00000000005db6ec in main (argc=<optimized out>, argv=<optimized out>)
at fftools/ffmpeg.c:4894
How to reproduce:
% ./ffmpeg_g -t 1 -stream_loop 25 -y -i ffrv20-crashing-atmos.rm -loglevel 0 -map 0 -c:a:113 a64multi5 -vframes 99 -b:v 509k -strict 1 tmp.flv 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-usan
Attachments (2)
Change History (4)
by , 6 years ago
by , 6 years ago
| Attachment: | ffrv20-crashing-atmos.rm added |
|---|
comment:1 by , 4 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
Does not reproduce. 3 year old line numbers dont make sense with git master. New testcase is needed if this is not fixed already
comment:2 by , 4 years ago
| Resolution: | worksforme → fixed |
|---|
Fixed in 245017ec8a87d6e4c764d06afeca37100b980d85.
(You even added a "Fixes: Ticket8201" to the commit message.)
Note:
See TracTickets
for help on using tickets.



poc