libultrahdr
libultrahdr copied to clipboard
Catch potential memory corruption in applyGainmap() call
applyGainMap() call is vulnerable to memory corruption when the buffer size of dest from user configuration is not big enough, which will cause crash. This change added a try-catch flow to avoid the crash.