[vlc-commits] access: bluray: fix background use after free

Francois Cartegnie git at videolan.org
Fri Oct 26 17:53:13 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Oct 26 14:39:02 2018 +0200| [b542b7102b76a1c7c6ca4892cc8e15c171a4f5d5] | committer: Francois Cartegnie

access: bluray: fix background use after free

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

 modules/access/bluray.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index c381183220..26ea6ff35f 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -611,10 +611,10 @@ static void stopBackground(demux_t *p_demux)
 
     msg_Info(p_demux, "Stop background");
 
-    es_out_Del(p_demux->out, p_sys->bdj.p_dummy_video);
-
     if (p_sys->bdj.p_video_es == p_sys->bdj.p_dummy_video)
         blurayReleaseVideoES(p_demux);
+
+    es_out_Del(p_demux->out, p_sys->bdj.p_dummy_video);
     p_sys->bdj.p_dummy_video = NULL;
 
     vlc_mutex_unlock(&p_sys->bdj.lock);



More information about the vlc-commits mailing list