[vlc-commits] [Git][videolan/vlc][master] demux: mkv: fix potential division by zero

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Nov 14 12:23:12 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
2c38b23c by Steve Lhomme at 2025-11-14T12:09:34+00:00
demux: mkv: fix potential division by zero

Fixes https://code.videolan.org/videolan/vlc/-/issues/29444

- - - - -


1 changed file:

- modules/demux/mkv/util.cpp


Changes:

=====================================
modules/demux/mkv/util.cpp
=====================================
@@ -445,6 +445,9 @@ int32_t Cook_PrivateTrackData::Init()
     i_subpacket_size = bytes.GetBE16(); // sub_packet_size
     bytes.skip(2);                      // unknown5
 
+    if ( i_subpacket_size == 0 )
+        return 0;
+
     if( version == 4 )
     {
         // real_audio_private_v4



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2c38b23ccd7a1d648599f33be48ad992dd281f4d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2c38b23ccd7a1d648599f33be48ad992dd281f4d
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