aboutsummaryrefslogtreecommitdiffstats
path: root/community/openexr/CVE-2018-18444.patch
blob: 54be2400ba1a12c91893110160ee5056b768dac8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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));
 }