[vlc-commits] codec: mad: fix use after free

Francois Cartegnie git at videolan.org
Mon Jun 26 14:42:26 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jun 26 14:41:36 2017 +0200| [2da3e33ac03a039a2f5b5cf761100269863f61e1] | committer: Francois Cartegnie

codec: mad: fix use after free

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2da3e33ac03a039a2f5b5cf761100269863f61e1
---

 modules/codec/mad.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/mad.c b/modules/codec/mad.c
index e6f50956c9..7fed810370 100644
--- a/modules/codec/mad.c
+++ b/modules/codec/mad.c
@@ -212,7 +212,10 @@ end:
 reject:
     p_sys->i_reject_count--;
     if( p_out_buf )
+    {
         block_Release( p_out_buf );
+        p_out_buf = NULL;
+    }
     goto end;
 }
 



More information about the vlc-commits mailing list