fix exr memory allocation size overflow by turning the size into a uint64_t (#96)

This commit is contained in:
Nuno Silva
2025-07-31 16:57:14 +01:00
committed by GitHub
parent 5c1fffca4d
commit 3af74f3fe1

View File

@@ -547,7 +547,7 @@ namespace bimg
stepA = 1; stepA = 1;
} }
data = (uint8_t*)bx::alloc(_allocator, exrImage.width * exrImage.height * dstBpp/8); data = (uint8_t*)bx::alloc(_allocator, (size_t)exrImage.width * exrImage.height * dstBpp/8);
width = exrImage.width; width = exrImage.width;
height = exrImage.height; height = exrImage.height;