[vlc-commits] [Git][videolan/vlc][3.0.x] demux: mkv: fix title reading boundaries
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Jul 23 09:39:50 UTC 2026
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
6516909a by Steve Lhomme at 2026-07-23T09:14:39+00:00
demux: mkv: fix title reading boundaries
Fixes #29671
- - - - -
1 changed file:
- modules/demux/mkv/chapter_command.cpp
Changes:
=====================================
modules/demux/mkv/chapter_command.cpp
=====================================
@@ -125,7 +125,7 @@ std::string dvd_chapter_codec_c::GetCodecName( bool f_for_title ) const
result = "First Played";
else if ( p_data[1] == 0xC0 )
result = "Video Manager";
- else if ( p_data[1] == 0x80 )
+ else if ( p_data[1] == 0x80 && p_private_data->GetSize() > 3)
{
uint16_t i_title = (p_data[2] << 8) + p_data[3];
char psz_str[20];
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6516909a0cec09abeb40796b06bcb3fa75fba7c3
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6516909a0cec09abeb40796b06bcb3fa75fba7c3
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list