aboutsummaryrefslogtreecommitdiffstats
path: root/community/openexr/CVE-2018-18444.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/openexr/CVE-2018-18444.patch')
-rw-r--r--community/openexr/CVE-2018-18444.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/openexr/CVE-2018-18444.patch b/community/openexr/CVE-2018-18444.patch
new file mode 100644
index 0000000000..54be2400ba
--- /dev/null
+++ b/community/openexr/CVE-2018-18444.patch
@@ -0,0 +1,23 @@
+From 1b0f1e5d7dcf2e9d6cbb4e005e803808b010b1e0 Mon Sep 17 00:00:00 2001
+From: pgajdos <pgajdos@suse.cz>
+Date: Fri, 14 Jun 2019 22:19:30 +0200
+Subject: [PATCH] fix CVE-2018-18444
+
+---
+ exrmultiview/Image.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/OpenEXR/exrmultiview/Image.h b/OpenEXR/exrmultiview/Image.h
+index 5d718f5d..c465d380 100644
+--- a/exrmultiview/Image.h
++++ b/exrmultiview/Image.h
+@@ -227,7 +227,7 @@ template <class T>
+ void
+ TypedImageChannel<T>::black ()
+ {
+- memset(&_pixels[0][0],0,image().width()/_xSampling*image().height()/_ySampling*sizeof(T));
++ memset(&_pixels[0][0],0,image().width()/_xSampling*(image().height()/_ySampling)*sizeof(T));
+ }
+
+
+