[FFmpeg-trac] #11032(avformat:closed): Memory Leak Vulnerability in avformat_open_input

FFmpeg trac at avcodec.org
Sat May 25 21:26:19 EEST 2024


#11032: Memory Leak Vulnerability in avformat_open_input
--------------------------------------+------------------------------------
             Reporter:  safa karakus  |                    Owner:  (none)
                 Type:  defect        |                   Status:  closed
             Priority:  normal        |                Component:  avformat
              Version:  unspecified   |               Resolution:  invalid
             Keywords:                |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+------------------------------------
Comment (by safa karakus):

 I think the arrangement you mentioned should be like this?

 {{{
                 while (ret >= 0) {
                     ret = avcodec_receive_frame(codec_ctx, frame);
                     if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) {
                         av_packet_unref(packet);  // Unref packet when
 EAGAIN or EOF
                         break;
                     } else if (ret < 0) {
                         break;
                     }
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11032#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list