Opened 5 years ago

Closed 5 years ago

#8147 closed defect (fixed)

null pointer passed as argument bug at libavformat/subtitles.c

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

Description

Summary of the bug:
There's a null pointer passed as argument bug at libavformat/subtitles.c

libavformat/subtitles.c:197:11: runtime error: null pointer passed as argument 1, which is declared to never be null
/usr/include/stdlib.h:828:30: note: nonnull attribute specified here

How to reproduce:

% ./ffmpeg_g -y -r 62 -i bc03b6a77ef2c3decfc000fd072c0af23351f271 -target dv -map 0 -c copy -c: a:106 mov_text -disposition: a:20 wmv2 -aframes 89 -r 95 -ab 989k -ac 13 -b:v 520k output/tmp.wve
ffmpeg version N-94887-ge55018ee11 (git master)
built on ... ubuntu 18.04 with clang-6 and UBSAN option.

Attachments (2)

bc03b6a77ef2c3decfc000fd072c0af23351f271 (241.3 KB ) - added by Suhwan 5 years ago.
poc
gdb-null_pointer-subtitles (12.0 KB ) - added by Suhwan 5 years ago.

Download all attachments as: .zip

Change History (3)

by Suhwan, 5 years ago

poc

by Suhwan, 5 years ago

Attachment: gdb-null_pointer-subtitles added

comment:1 by mkver, 5 years ago

Component: undeterminedavformat
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.