OpenEXR/CVE-2021-20298.patch

27 lines
863 B
Diff
Raw Normal View History

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