vlc/vlc-3.0 | branch: master | Thomas Guillem <[email protected]> | Tue Feb 20 18:18:37 2018 +0100| [58a2f426780b8c9317b575e4e314e3be92f6f7de] | committer: Thomas Guillem
chromecast: increase lock range This could lead to a use-after-free of the header block. (cherry picked from commit 019c77813de3f587a71d4d63ed9dadbe074307fa) Signed-off-by: Thomas Guillem <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=58a2f426780b8c9317b575e4e314e3be92f6f7de --- 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 1f85e8e8a3..ee6f7cb578 100644 --- a/modules/stream_out/chromecast/cast.cpp +++ b/modules/stream_out/chromecast/cast.cpp @@ -438,7 +438,6 @@ int sout_access_out_sys_t::url_cb(httpd_client_t *cl, httpd_message_t *answer, fifo_put_back(p_block); p_block = m_header; } - vlc_fifo_Unlock(m_fifo); if (vlc_fifo_GetBytes(m_fifo) < HTTPD_BUFFER_PACE) m_intf->setPacing(false); @@ -470,6 +469,7 @@ int sout_access_out_sys_t::url_cb(httpd_client_t *cl, httpd_message_t *answer, else httpd_MsgAdd(answer, "Connection", "close"); + vlc_fifo_Unlock(m_fifo); return VLC_SUCCESS; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
