vlc | branch: master | Thomas Guillem <tho...@gllm.fr> | Tue Feb 20 17:41:11 
2018 +0100| [d9815d1956fe24ff984f7a13e46e70b45a1e22fc] | committer: Thomas 
Guillem

chromecast: fix use-after-free

Since the url can use the fifo from its callbacks.

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

 modules/stream_out/chromecast/cast.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/cast.cpp 
b/modules/stream_out/chromecast/cast.cpp
index ee6f7cb578..f18bd4eef7 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -353,8 +353,8 @@ sout_access_out_sys_t::sout_access_out_sys_t(httpd_host_t 
*httpd_host,
 
 sout_access_out_sys_t::~sout_access_out_sys_t()
 {
-    block_FifoRelease(m_fifo);
     httpd_UrlDelete(m_url);
+    block_FifoRelease(m_fifo);
 }
 
 void sout_access_out_sys_t::clearUnlocked()

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to