Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#8183 closed defect (fixed)

heap-buffer-overflow at libavcodec/get_bits.h writing mov files

Reported by: Suhwan Owned by:
Priority: important Component: avformat
Version: git-master Keywords: asan mov
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: yes


Summary of the bug:
There is a heap-buffer-overflow bug at libavcodec/get_bits.h:403:5

SUMMARY: AddressSanitizer: heap-buffer-overflow ffmpeg/./libavcodec/get_bits.h:403:5 in get_bits

How to reproduce:

% ./ffmpeg_g -t 3 -y -r 82 -i test_v_av1_320x180.webm -loglevel 99 -map 0 -c copy -vframes 102 -aframes 68 -r 61 -ac 1 -b:v 854k tmp.mp4

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)

asan-get_bits (3.3 KB ) - added by Suhwan 5 years ago.
test_v_av1_320x180.webm (27.5 KB ) - added by Suhwan 5 years ago.

Download all attachments as: .zip

Change History (4)

by Suhwan, 5 years ago

Attachment: asan-get_bits added

by Suhwan, 5 years ago

Attachment: test_v_av1_320x180.webm added


comment:1 by James, 5 years ago

Analyzed by developer: set
Component: undeterminedavformat
Reproduced by developer: set
Resolution: fixed
Status: newclosed

comment:2 by Carl Eugen Hoyos, 5 years ago

Keywords: mov added
Summary: heap-buffer-overflow at libavcodec/get_bits.hheap-buffer-overflow at libavcodec/get_bits.h writing mov files
Note: See TracTickets for help on using tickets.