libultrahdr icon indicating copy to clipboard operation
libultrahdr copied to clipboard

Catch potential memory corruption in applyGainmap() call

Open DichenZhang1 opened this issue 4 months ago • 0 comments

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.

DichenZhang1 avatar Aug 30 '25 05:08 DichenZhang1