Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
openexr.21776
openexr-CVE-2021-20300.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openexr-CVE-2021-20300.patch of Package openexr.21776
diff --git a/OpenEXR/IlmImf/ImfHuf.cpp b/OpenEXR/IlmImf/ImfHuf.cpp index 7bd7fc00d..23cfcfd6c 100644 --- a/IlmImf/ImfHuf.cpp +++ b/IlmImf/ImfHuf.cpp @@ -1093,7 +1093,9 @@ hufUncompress (const char compressed[], const char *ptr = compressed + 20; - if ( ptr + (nBits+7 )/8 > compressed+nCompressed) + uint64_t nBytes = (static_cast<uint64_t>(nBits)+7) / 8 ; + + if ( ptr + nBytes > compressed+nCompressed) { notEnoughData(); return;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor