openbsd-ports/x11/vlc/patches/patch-modules_demux_mkv_demux_cpp
2011-04-12 22:40:20 +00:00

16 lines
608 B
Plaintext

$OpenBSD: patch-modules_demux_mkv_demux_cpp,v 1.2 2011/04/12 22:40:20 sthen Exp $
Insufficient input validation in MKV demuxer. CVE-2011-0531
--- modules/demux/mkv/demux.cpp.orig Tue Feb 1 20:03:12 2011
+++ modules/demux/mkv/demux.cpp Tue Feb 1 20:03:46 2011
@@ -94,7 +94,7 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFoun
while (p_l0 != 0)
{
- if (EbmlId(*p_l0) == KaxSegment::ClassInfos.GlobalId)
+ if ( MKV_IS_ID( p_l0, KaxSegment) )
{
EbmlParser *ep;
matroska_segment_c *p_segment1 = new matroska_segment_c( *this, *p_estream );