demux: mkv: preloaded segments with no tracks are preloaded
authorSteve Lhomme <robux4@ycbcr.xyz>
Thu, 8 Aug 2019 15:16:52 +0000 (17:16 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 14 Aug 2019 16:06:03 +0000 (18:06 +0200)
A Segment with no Tracks is allowed by the specs.

CVE-2019-14777, CVE-2019-14778
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
modules/demux/mkv/matroska_segment.cpp

index 43247ca..c0b8ad8 100644 (file)
@@ -611,7 +611,6 @@ bool matroska_segment_c::Preload( )
             if ( tracks.size() == 0 )
             {
                 msg_Err( &sys.demuxer, "No tracks supported" );
-                return false;
             }
             i_tracks_position = el->GetElementPosition();
         }