Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
openexr.21777
openexr-CVE-2021-20303.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openexr-CVE-2021-20303.patch of Package openexr.21777
diff --git a/OpenEXR/IlmImf/ImfTiledMisc.cpp b/OpenEXR/IlmImf/ImfTiledMisc.cpp index b8e195fd8..89ef97cb5 100644 --- a/IlmImf/ImfTiledMisc.cpp +++ b/IlmImf/ImfTiledMisc.cpp @@ -97,13 +97,14 @@ dataWindowForTile (const TileDescription &tileDesc, V2i tileMin = V2i (minX + dx * tileDesc.xSize, minY + dy * tileDesc.ySize); - V2i tileMax = tileMin + V2i (tileDesc.xSize - 1, tileDesc.ySize - 1); + long long tileMaxX = (long long)(tileMin[0]) + tileDesc.xSize - 1; + long long tileMaxY = (long long)(tileMin[1]) + tileDesc.ySize - 1; V2i levelMax = dataWindowForLevel (tileDesc, minX, maxX, minY, maxY, lx, ly).max; - tileMax = V2i (std::min (tileMax[0], levelMax[0]), - std::min (tileMax[1], levelMax[1])); + V2i tileMax = V2i (std::min (tileMaxX, (long long)(levelMax[0])), + std::min (tileMaxY, (long long)(levelMax[1]))); return Box2i (tileMin, tileMax); }
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