[FFmpeg-cvslog] avformat/rtpproto: free ip filters on open error

Kacper Michajłow git at videolan.org
Wed Aug 7 02:00:02 EEST 2024


ffmpeg | branch: master | Kacper Michajłow <kasper93 at gmail.com> | Fri May 10 04:07:40 2024 +0200| [792a9979ebc678de9b67745027e2c1bfb63e4845] | committer: Michael Niedermayer

avformat/rtpproto: free ip filters on open error

Found by OSS-Fuzz.

Signed-off-by: Kacper Michajłow <kasper93 at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=792a9979ebc678de9b67745027e2c1bfb63e4845
---

 libavformat/rtpproto.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index b1cdf061f0..15d0050936 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -379,6 +379,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags)
     return 0;
 
  fail:
+    ff_ip_reset_filters(&s->filters);
     ffurl_closep(&s->rtp_hd);
     ffurl_closep(&s->rtcp_hd);
     ffurl_closep(&s->fec_hd);



More information about the ffmpeg-cvslog mailing list