[vlc-commits] mosaic: use after free

Rémi Denis-Courmont git at videolan.org
Wed Nov 5 22:23:58 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov  5 23:23:35 2014 +0200| [d0b6ecb24e52d943bbb2f0debdc4237b4b112aee] | committer: Rémi Denis-Courmont

mosaic: use after free

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

 modules/video_filter/mosaic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_filter/mosaic.c b/modules/video_filter/mosaic.c
index 56b695b..63d74a7 100644
--- a/modules/video_filter/mosaic.c
+++ b/modules/video_filter/mosaic.c
@@ -651,7 +651,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
             subpicture_Delete( p_spu );
             vlc_global_unlock( VLC_MOSAIC_MUTEX );
             vlc_mutex_unlock( &p_sys->lock );
-            return p_spu;
+            return NULL;
         }
 
         if( p_es->i_x >= 0 && p_es->i_y >= 0 )



More information about the vlc-commits mailing list