Opened 5 years ago

Closed 5 years ago

#8141 closed defect (fixed)

null pointer passed as argument at libavutil/encryption_info.c

Reported by: Suhwan Owned by:
Priority: important Component: avutil
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 2 bug, which is declared to never be null in libavutil/encryption_info.c:334:28

libavutil/encryption_info.c:334:28: runtime error: null pointer passed as argument 2, which is declared to never be null
/usr/include/string.h:43:28: note: nonnull attribute specified here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavutil/encryption_info.c:334:28 in

How to reproduce:

% ./ffmpeg_g -loglevel 99 -stream_loop 18 -y -r 97 -i gizmo-frag-cencinit.mp4 -map 0 -c copy -disposition: s:5 pcx -aframes 13 -ac 6 -b:v 919k -strict 0 output/tmp.avi
ffmpeg version N-94887-ge55018ee11 (git master)
built on ... ubuntu 18.04 with clang-6 and UBSAN option.

Attachments (2)

gizmo-frag-cencinit.mp4 (1.9 KB ) - added by Suhwan 5 years ago.
gdb-log-null_pointer (14.0 KB ) - added by Suhwan 5 years ago.

Download all attachments as: .zip

Change History (3)

by Suhwan, 5 years ago

Attachment: gizmo-frag-cencinit.mp4 added

by Suhwan, 5 years ago

Attachment: gdb-log-null_pointer added

comment:1 by mkver, 5 years ago

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