File openexr-CVE-2020-16587.patch of Package openexr.17686

Index: openexr-2.2.1/IlmImf/ImfMultiPartInputFile.cpp
===================================================================
--- openexr-2.2.1.orig/IlmImf/ImfMultiPartInputFile.cpp	2020-12-15 15:48:42.311478385 +0100
+++ openexr-2.2.1/IlmImf/ImfMultiPartInputFile.cpp	2020-12-15 15:51:12.896382930 +0100
@@ -571,7 +571,7 @@ MultiPartInputFile::Data::chunkOffsetRec
             
             
             
-            if(partNumber<0 || partNumber>int(parts.size()))
+            if(partNumber<0 || partNumber>=int(parts.size()))
             {
                 // bail here - bad part number
                 throw int();
openSUSE Build Service is sponsored by