Menu

#163 Add palette pointer check in PluginRAS.cpp

open
nobody
None
5
2023-10-13
2023-10-13
No

Hi! When the image bpp(bits per pixel) exceeds 16, accessing the image palette will returns NULL, causing the program to crash. Add pointer checking after calling FreeImage_GetPalette().

Environment:
OS: debian 12
revision: 1909

Reproduce the error:

FreeImage_Load(FIF_RAS, "./pointer_crash.ras");
2 Attachments

Discussion

Anonymous
Anonymous

Add attachments
Cancel