[vlc-commits] mkv: Fix potential double free
Hugo Beauzée-Luyssen
git at videolan.org
Thu May 23 17:21:17 CEST 2019
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon May 20 11:43:26 2019 +0200| [81023659c7de5ac2637b4a879195efef50846102] | committer: Hugo Beauzée-Luyssen
mkv: Fix potential double free
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=81023659c7de5ac2637b4a879195efef50846102
---
modules/demux/mkv/util.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/demux/mkv/util.cpp b/modules/demux/mkv/util.cpp
index b25e850dc0..afed921e6d 100644
--- a/modules/demux/mkv/util.cpp
+++ b/modules/demux/mkv/util.cpp
@@ -88,6 +88,7 @@ int32_t zlib_decompress_extra( demux_t * p_demux, mkv_track_t & tk )
msg_Err( p_demux, "Couldn't allocate buffer to inflate data, ignore track %u",
tk.i_number );
inflateEnd( &d_stream );
+ tk.p_extra_data = NULL;
return 1;
}
More information about the vlc-commits
mailing list