-
-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Labels
Description
Describe the issue
Currently TinyEXR does not support capping memory consumption.
Without such feature, the app may trigger OOM for large EXR images.
- Three Bugs in tinyexr.h #197
- Program crash due to Out-of-memory in function tinyexr::AllocateImage #104
- allocator is out of memory #200
To Reproduce
Run poc2 and poc2 in issue 197.
Expected behavior
Add feature to specify the maximum memory to use. This requires
- Define new API(current API does not support providing any loader options)
- Set the maximum memory in define macro, e.g.
- `#define TINYEXR_MAX_MAMORY (102410241024*64)
It also require implementing tracking memory consumption in TinyEXR .
Environment
N/A