[vlc-commits] [Git][videolan/vlc][master] demux: mkv: check p_private_data is valid before using it

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Mar 13 12:22:40 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
1bc17d27 by Peter Pen at 2026-03-13T12:06:37+00:00
demux: mkv: check p_private_data is valid before using it

- - - - -


1 changed file:

- modules/demux/mkv/chapter_command_dvd.cpp


Changes:

=====================================
modules/demux/mkv/chapter_command_dvd.cpp
=====================================
@@ -69,7 +69,7 @@ bool dvd_chapter_codec_c::EnterLeaveHelper( char const * str_diag, ChapterProces
 std::string dvd_chapter_codec_c::GetCodecName( bool f_for_title ) const
 {
     std::string result;
-    if ( p_private_data->GetSize() >= 3)
+    if ( p_private_data && p_private_data->GetSize() >= 3)
     {
         const binary* p_data = p_private_data->GetBuffer();
 /*        if ( p_data[0] == MATROSKA_DVD_LEVEL_TT )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1bc17d273913bccc6d6ef008c5a9286d08bbd84d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1bc17d273913bccc6d6ef008c5a9286d08bbd84d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list