Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
SDL_image
> SDL_image-1.2.4-gif-overflow.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File SDL_image-1.2.4-gif-overflow.patch of Package SDL_image
--- IMG_gif.c +++ IMG_gif.c @@ -418,6 +418,10 @@ static int stack[(1 << (MAX_LWZ_BITS)) * 2], *sp; register int i; + /* Fixed buffer overflow found by Michael Skladnikiewicz */ + if (input_code_size > MAX_LWZ_BITS) + return -1; + if (flag) { set_code_size = input_code_size; code_size = set_code_size + 1;