Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#7981 closed defect (fixed)

null pointer passed as argument at libavcodec/frame_thread_encoder.c:213:20

Reported by: Suhwan Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: ubsan
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
There are 2 null pointer passed as argument at libavcodec/frame_thread_encoder.c:213:45 and a division by zero at libavformat/rawenc.c:70:50.

How to reproduce:

Run the following cmd:
% ffmpeg_g  -t 0 -stream_loop 20 -y -r 49 -i tmp.avi -map 0 -c:v v408 -c:s:8 pcm_s8 -disposition:a cinepak -disposition:v:109 ffv1 -aframes 38 -ar 48000 -b:v 627 tmp_.adx

ffmpeg version: N-94137-g89b96900fa Copyright (c) 2000-2019 the FFmpeg developers

built with clang version 9.0.0 (https://github.com/llvm/llvm-project.git 442a120567a4bc6c59bc754f9edabfb770086f36).

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Attachments (2)

tmp.avi (282.5 KB ) - added by Suhwan 5 years ago.
gdb_log_7981 (15.6 KB ) - added by Suhwan 5 years ago.

Download all attachments as: .zip

Change History (5)

by Suhwan, 5 years ago

Attachment: tmp.avi added

by Suhwan, 5 years ago

Attachment: gdb_log_7981 added

comment:1 by Carl Eugen Hoyos, 5 years ago

Component: undeterminedavcodec
Keywords: ubsan added; Null Pointer passed Division by Zero ASAN FFMpeg avformat removed

Patch sent.

comment:2 by Carl Eugen Hoyos, 5 years ago

Resolution: fixed
Status: newclosed

comment:3 by Kamalalochana Subbaiah, 5 years ago

Please confirm if version 4.0.0 of ffmpeg is affected by the above described vulnerability?

Note: See TracTickets for help on using tickets.