[FFmpeg-trac] #8503(avformat:new): heap-use-after-free (libavformat)

FFmpeg trac at avcodec.org
Thu Jan 30 15:58:18 EET 2020


#8503: heap-use-after-free (libavformat)
------------------------------------+------------------------------------
             Reporter:  satbaby     |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by satbaby):

 {{{
 #include <string>

 extern "C" {
 #include <libavformat/avformat.h>
 }

 int main()
 {
         std::string name = "http://zdf-
 hls-02.akamaized.net/hls/live/2002461/de/high/master.m3u8";

         AVFormatContext *ifcx = NULL;
         if (avformat_open_input(&ifcx, name.c_str(), NULL, NULL) != 0) {
                 return -1;
         }
         if (ifcx) {
                 avformat_close_input(&ifcx);
         }

     return 0;
 }
 }}}
 c++ -g -lavutil -lavformat -lavcodec test.cpp -g -fsanitize=address -fno-
 omit-frame-pointer

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8503#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list