summaryrefslogtreecommitdiff
path: root/multimedia/mythtv/files/patch-CVE-2017-09991
diff options
context:
space:
mode:
authorJason E. Hale <jhale@FreeBSD.org>2018-03-25 17:09:05 +0000
committerJason E. Hale <jhale@FreeBSD.org>2018-03-25 17:09:05 +0000
commitdb032688dfff0df0cd92849f13033b28a8b1b1f2 (patch)
tree798b5fbd8a866689a9e7a6acdefbbe97f5e7555e /multimedia/mythtv/files/patch-CVE-2017-09991
parent- update to 2.0 (diff)
Update multimedia/mythtv and related ports to 29.1 [1]
Convert multimedia/mythtv-frontend to a slave port of multimedia/mythtv which should make future updates much easier. Upstream security patches have been added to address known vulnerabilities in the bundled ffmpeg 3.2. PR: 225652 (initial patches to update to 29.0) [1] Submitted by: <lucylangthorne55@gmail.com> [1] Differential Revision: https://reviews.freebsd.org/D14563
Diffstat (limited to 'multimedia/mythtv/files/patch-CVE-2017-09991')
-rw-r--r--multimedia/mythtv/files/patch-CVE-2017-0999132
1 files changed, 32 insertions, 0 deletions
diff --git a/multimedia/mythtv/files/patch-CVE-2017-09991 b/multimedia/mythtv/files/patch-CVE-2017-09991
new file mode 100644
index 000000000000..4ce00103fb24
--- /dev/null
+++ b/multimedia/mythtv/files/patch-CVE-2017-09991
@@ -0,0 +1,32 @@
+From 85c8c0c826e78d159ea242ce64d7e8feeeeca741 Mon Sep 17 00:00:00 2001
+From: Michael Niedermayer <michael@niedermayer.cc>
+Date: Sun, 7 May 2017 18:50:49 +0200
+Subject: [PATCH] avcodec/xwddec: Check bpp more completely
+
+Fixes out of array access
+Fixes: 1399/clusterfuzz-testcase-minimized-4866094172995584
+
+Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
+Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
+(cherry picked from commit 441026fcb13ac23aa10edc312bdacb6445a0ad06)
+Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
+---
+ libavcodec/xwddec.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git libavcodec/xwddec.c libavcodec/xwddec.c
+index 64cd8418a20..8b0845fc013 100644
+--- external/FFmpeg/libavcodec/xwddec.c
++++ external/FFmpeg/libavcodec/xwddec.c
+@@ -157,9 +157,9 @@ static int xwd_decode_frame(AVCodecContext *avctx, void *data,
+ case XWD_GRAY_SCALE:
+ if (bpp != 1 && bpp != 8)
+ return AVERROR_INVALIDDATA;
+- if (pixdepth == 1) {
++ if (bpp == 1 && pixdepth == 1) {
+ avctx->pix_fmt = AV_PIX_FMT_MONOWHITE;
+- } else if (pixdepth == 8) {
++ } else if (bpp == 8 && pixdepth == 8) {
+ avctx->pix_fmt = AV_PIX_FMT_GRAY8;
+ }
+ break;