[vlc-commits] [Git][videolan/vlc][master] demux: mkv: allow infinite elements in finite parent

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Sep 28 15:18:50 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
fbc9f559 by Steve Lhomme at 2026-09-28T14:49:39+00:00
demux: mkv: allow infinite elements in finite parent

The stack overflow from #29578 is no longer present in that sample with
all the libebml and recent demuxer changes. We can allow this type of file again.

Fixes #30147
Fixes #30172

- - - - -


1 changed file:

- modules/demux/mkv/Ebml_parser.cpp


Changes:

=====================================
modules/demux/mkv/Ebml_parser.cpp
=====================================
@@ -162,11 +162,8 @@ EbmlElement *EbmlParser::Get( bool allow_overshoot )
             }
             if( !ret->IsFiniteSize() )
             {
-                msg_Err( p_demux, "Infinite EBML element %s at %" PRIu64 " inside finite parent",
+                msg_Dbg( p_demux, "Infinite EBML element %s at %" PRIu64 " inside finite parent",
                          EBML_NAME(ret), ret->GetElementPosition() );
-                delete ret;
-                m_el[mi_level] = NULL;
-                return NULL;
             }
         }
         return ret;



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

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