Skip to content

SEGV at SDL_LoadAnimatedGif in ngiflibSDL.c:209 #41

@ambrosecm

Description

@ambrosecm

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

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions