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");
Anonymous