mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 12:42:35 +01:00
fix exr memory allocation size overflow by turning the size into a uint64_t (#96)
This commit is contained in:
@@ -547,7 +547,7 @@ namespace bimg
|
||||
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;
|
||||
height = exrImage.height;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user