Desctiption
When I used the SDL_LoadAnimatedGif function to handle a specific gif file, a segmentation fault (SEGV) was triggered at SDL_LoadAnimatedGif in ngiflibSDL.c:209. and potentially resulting in display abnormalities across the entire Linux system.
|
surface->format->palette->colors[i].r = gif->palette[i].r; |
Test Environment
Ubuntu 22.04.1, 64bit
ngiflib(master fbf2d0c)
program source file
How to trigger
Download the poc file , program and run the following cmd:
$ ./SDL_LoadAnimatedGif ./poc1
Detail
GDB report

Desctiption
When I used the SDL_LoadAnimatedGif function to handle a specific gif file, a segmentation fault (SEGV) was triggered at SDL_LoadAnimatedGif in ngiflibSDL.c:209. and potentially resulting in display abnormalities across the entire Linux system.
ngiflib/ngiflibSDL.c
Line 209 in fbf2d0c
Test Environment
Ubuntu 22.04.1, 64bit
ngiflib(master fbf2d0c)
program source file
How to trigger
Download the poc file , program and run the following cmd:
Detail
GDB report