summaryrefslogtreecommitdiff
path: root/multimedia/vlc/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2011-01-31 16:47:56 +0000
committerdrochner <drochner@pkgsrc.org>2011-01-31 16:47:56 +0000
commitb402f9105436b483a2523f438925e284e83e91d2 (patch)
treefe4d691c9d8975f96cc4d2e5b2ff7f768f6fffb0 /multimedia/vlc/patches
parentf299f5c61766675c62e390dffd955d4144d100ac (diff)
downloadpkgsrc-b402f9105436b483a2523f438925e284e83e91d2.tar.gz
add patch from upstream to fix an MKV input validation bug possibly
leading to execution of arbitrary code bump PKGREV
Diffstat (limited to 'multimedia/vlc/patches')
-rw-r--r--multimedia/vlc/patches/patch-au13
1 files changed, 13 insertions, 0 deletions
diff --git a/multimedia/vlc/patches/patch-au b/multimedia/vlc/patches/patch-au
new file mode 100644
index 00000000000..76662b770a1
--- /dev/null
+++ b/multimedia/vlc/patches/patch-au
@@ -0,0 +1,13 @@
+$NetBSD: patch-au,v 1.1 2011/01/31 16:47:56 drochner Exp $
+
+--- modules/demux/mkv/mkv.hpp.orig 2010-05-21 08:48:24.000000000 +0000
++++ modules/demux/mkv/mkv.hpp
+@@ -119,7 +119,7 @@ extern "C" {
+
+ #define MKVD_TIMECODESCALE 1000000
+
+-#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;