openbsd-ports/x11/vlc/patches/patch-modules_demux_mkv_mkv_hpp
jakemsr 9b54f5b172 fix for newer libmatroska
from Brad (MAINTAINER)
2011-03-12 21:19:13 +00:00

25 lines
794 B
Plaintext

$OpenBSD: patch-modules_demux_mkv_mkv_hpp,v 1.2 2011/03/12 21:19:13 jakemsr Exp $
Insufficient input validation in MKV demuxer (VideoLAN-SA-1102).
--- modules/demux/mkv/mkv.hpp.orig Thu Apr 15 12:52:46 2010
+++ modules/demux/mkv/mkv.hpp Sun Feb 27 02:00:13 2011
@@ -93,7 +93,7 @@
#include "matroska/KaxSegment.h"
#include "matroska/KaxTag.h"
#include "matroska/KaxTags.h"
-#include "matroska/KaxTagMulti.h"
+//#include "matroska/KaxTagMulti.h"
#include "matroska/KaxTracks.h"
#include "matroska/KaxTrackAudio.h"
#include "matroska/KaxTrackVideo.h"
@@ -130,7 +130,7 @@ extern "C" {
#endif
-#define MKV_IS_ID( el, C ) ( EbmlId( (*el) ) == C::ClassInfos.GlobalId )
+#define MKV_IS_ID( el, C ) ( el != NULL && typeid( *el ) == typeid( C ) )
using namespace LIBMATROSKA_NAMESPACE;