[MPlayer-dev-eng] [PATCH] Fix hang on demux of matroska files with 0byte-ints using 'mkv' demuxer

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Sep 5 11:36:06 CEST 2010


On Wed, Sep 01, 2010 at 12:00:42AM +0200, Aurelien Jacobs wrote:
> On Sun, Aug 29, 2010 at 06:28:39PM +0200, Sebastian Hagen wrote:
> > Hello *,
> > 
> > Mplayer's 'mkv' matroska file demuxer has a bug preventing it from
> > parsing integers with a length of 0 bytes correctly, even though those
> > are valid according to the Matroska specs[1]. Thus, attempting to play
> > mkv files containing such integers without explicitly specifying
> > '-demuxer lavf' will result in an mplayer hang on demux.
> 
> What are you talking about exactly ?
> '-demuxer lavf' is the default behavior.
> And if you are using '-demuxer mkv', you are explicitly asking for
> trouble...

Could you please have a look that there's nothing _obvious_ wrong
with the patch?
And then let's just apply all these patches, even with lavf the default
it is easy enough for a malicious file to manage to end up with the mkv
demuxer by failing with the lavf one, and I don't think completely
removing the native one is an option, so we really can't just leave
these things.


More information about the MPlayer-dev-eng mailing list