OpenEXR/CVE-2021-20298.patch
mayp 1dd3d0bd0f Changes to be committed:
new file:   CVE-2021-20298.patch
	modified:   OpenEXR.spec

(cherry picked from commit cd531655669f557ec3d7ab8622c785a8b9c609e0)
2022-08-26 10:40:34 +08:00

27 lines
863 B
Diff

From 01d1b18611469470eb3a1016c970953c09312fd6 Mon Sep 17 00:00:00 2001
From: mayp <mayanping@ncti-gba.cn>
Date: Thu, 25 Aug 2022 17:13:53 +0800
Subject: [PATCH] Changes to be committed: modified:
IlmImf/ImfB44Compressor.cpp
---
IlmImf/ImfB44Compressor.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/IlmImf/ImfB44Compressor.cpp b/IlmImf/ImfB44Compressor.cpp
index d9fec62..2b85ed0 100644
--- a/IlmImf/ImfB44Compressor.cpp
+++ b/IlmImf/ImfB44Compressor.cpp
@@ -492,7 +492,7 @@ B44Compressor::B44Compressor
//
_tmpBuffer = new unsigned short
- [checkArraySize (uiMult (maxScanLineSize, numScanLines),
+ [checkArraySize (uiMult (maxScanLineSize / sizeof(unsigned short), numScanLines),
sizeof (unsigned short))];
const ChannelList &channels = header().channels();
--
2.33.0