From 13a2ceef16c89fe190f685a1c9090864903e77869f5424beef438777b24a3b7d Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Mon, 18 Jan 2021 10:27:45 +0000 Subject: [PATCH] Updating link to change in openSUSE:Factory/vlc revision 113.0 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/vlc?expand=0&rev=720d611906044f3e2d17d062c140582f --- vlc-CVE-2020-26664.patch | 13 +++++++++++++ vlc.changes | 7 +++++++ vlc.spec | 5 ++++- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 vlc-CVE-2020-26664.patch diff --git a/vlc-CVE-2020-26664.patch b/vlc-CVE-2020-26664.patch new file mode 100644 index 0000000..578edf8 --- /dev/null +++ b/vlc-CVE-2020-26664.patch @@ -0,0 +1,13 @@ +diff --git a/modules/demux/mkv/mkv.hpp b/modules/demux/mkv/mkv.hpp +index 38a62aa2af2ca8462eedfda25608543d1bd9eec6..fa9a1e81a5994a487ec846fed6d8c9a2cec3139e 100644 +--- a/modules/demux/mkv/mkv.hpp ++++ b/modules/demux/mkv/mkv.hpp +@@ -113,7 +113,7 @@ enum + + #define MKVD_TIMECODESCALE 1000000 + +-#define MKV_IS_ID( el, C ) ( el != NULL && (el->operator const EbmlId&()) == (C::ClassInfos.ClassId()) ) ++#define MKV_IS_ID( el, C ) ( el != NULL && (el->operator const EbmlId&()) == (C::ClassInfos.ClassId()) && !el->IsDummy() ) + #define MKV_CHECKED_PTR_DECL( name, type, src ) type * name = MKV_IS_ID(src, type) ? static_cast(src) : NULL + #define MKV_CHECKED_PTR_DECL_CONST( name, type, src ) const type * name = MKV_IS_ID(src, type) ? static_cast(src) : NULL + diff --git a/vlc.changes b/vlc.changes index a1affc7..ce907b0 100644 --- a/vlc.changes +++ b/vlc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 14 15:58:51 UTC 2021 - Dominique Leuenberger + +- Add vlc-CVE-2020-26664.patch: mkv: Ensure we don't use an + EbmlDummy element for something it's not (CVE-2020-26664, + boo#1180755). + ------------------------------------------------------------------- Tue Dec 15 10:53:27 UTC 2020 - Martin Liška diff --git a/vlc.spec b/vlc.spec index 3a57b4a..8b3b45e 100644 --- a/vlc.spec +++ b/vlc.spec @@ -1,7 +1,7 @@ # # spec file for package vlc # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2012 Dominique Leuenberger, Amsterdam, The Netherlands # # All modifications and additions to the file contributed by third parties @@ -51,6 +51,8 @@ Patch1: vlc-allow-deprecated-fribidi.patch Patch2: vlc-lua-5.3.patch # PATCH-FIX-UPSTREAM fix-build-with-fdk-2.0.patch -- Fix building vlc with libfdk-aac v2 Patch3: fix-build-with-fdk-2.0.patch +# PATCH-FIX-UPSTREAM vlc-CVE-2020-26664.patch CVE-2020-26664 dimstar@opensuse.org -- mkv: Ensure we don't use an EbmlDummy element for something it's not +Patch4: vlc-CVE-2020-26664.patch # PATCH-FEATURE-OPENSUSE vlc-projectM-qt5.patch -- Build against projectM-qt5; openSUSE provides projectM as -qt and -qt5 variant Patch100: vlc-projectM-qt5.patch # PATCH-FIX-UPSTREAM -- Use OpenCV C++ API @@ -400,6 +402,7 @@ OpenCV based video filters and a face detection example. %patch0 -p1 %patch1 -p1 %patch3 -p1 +%patch4 -p1 %if 0%{?suse_version} > 1320 && 0%{?suse_version} < 1550 && 0%{?sle_version} < 150200 %patch100 -p1 %endif