[FFmpeg-trac] #8141(undetermined:new): null pointer passed as argument at libavutil/encryption_info.c

FFmpeg trac at avcodec.org
Sun Sep 15 05:09:16 EEST 2019


#8141: null pointer passed as argument at libavutil/encryption_info.c
-------------------------------------+-------------------------------------
             Reporter:  Suhwan       |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:  ubsan        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 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.
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8141>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list