heap-use-after-free from libavformat/mpegenc.c in mpeg_mux_write_packet
Summary of the bug:
There is a heap-use-after-free from libavformat/mpegenc.c in mpeg_mux_write_packet.
SUMMARY: AddressSanitizer: heap-use-after-free ffmpeg/libavformat/mpegenc.c:1187:30 in mpeg_mux_write_packet
How to reproduce:
% ./ffmpeg_g -stream_loop 14 -y -r 115 -i Event20120111133101017.avi -loglevel 0 -map 0 -c copy -disposition:s:19 alias_pix tmp.mpeg
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
poc