Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gif_Context->decodepos = 0, segfault #14

Closed
newfurniturey opened this issue Mar 7, 2014 · 1 comment
Closed

Gif_Context->decodepos = 0, segfault #14

newfurniturey opened this issue Mar 7, 2014 · 1 comment

Comments

@newfurniturey
Copy link

If 0x0000 is written to specific offsets that populate the Gif_Context->decodepos position, there will be a segmentation fault caused by a buffer underrun in gifread.c:350:

gfc->image[gfc->decodepos - 1] = gfc->suffix[next_code];

Sometimes the images are valid gifs that will display in most browsers / previewers, other times they will fail to display entirely. One of each is are linked below.

Sample images:
http://i.imgur.com/o9wE74W.gif
http://i.imgur.com/s0lTXwq.gif

@kohler
Copy link
Owner

kohler commented Mar 8, 2014

Thanks!! This should be fixed. Although the image appears valid it has a zero-width frame.

@kohler kohler closed this as completed Mar 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants