[vlc-commits] mkv: Fix NULL deref
Hugo Beauzée-Luyssen
git at videolan.org
Wed Feb 21 10:37:23 CET 2018
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Feb 21 10:37:11 2018 +0100| [5bc9920b1017ce6df513505e23954a42d18475aa] | committer: Hugo Beauzée-Luyssen
mkv: Fix NULL deref
Fix #19785
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5bc9920b1017ce6df513505e23954a42d18475aa
---
modules/demux/mkv/matroska_segment_parse.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 7b18ee3286..8ec4f17aca 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -1521,7 +1521,8 @@ bool matroska_segment_c::TrackInit( mkv_track_t * p_tk )
}
S_CASE("V_MPEG2") {
vars.p_fmt->i_codec = VLC_CODEC_MPGV;
- if (strstr(vars.obj->psz_muxing_application,"libmakemkv"))
+ if (vars.obj->psz_muxing_application != NULL &&
+ strstr(vars.obj->psz_muxing_application,"libmakemkv"))
vars.p_fmt->b_packetized = false;
fill_extra_data( vars.p_tk, 0 );
}
More information about the vlc-commits
mailing list