]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/SDL_image-CVE-2006-4484.patch
More fixes for live under Win64
[vlc] / extras / contrib / src / Patches / SDL_image-CVE-2006-4484.patch
1 --- SDL_image/IMG_gif.orig.c    2008-02-01 11:58:19.000000000 +0100
2 +++ SDL_image/IMG_gif.c 2008-02-01 11:58:28.000000000 +0100
3 @@ -415,6 +415,10 @@
4      static int table[2][(1 << MAX_LWZ_BITS)];
5      static int stack[(1 << (MAX_LWZ_BITS)) * 2], *sp;
6      register int i;
7 +    
8 +    /* Fixed buffer overflow found by Michael Skladnikiewicz */
9 +    if( input_code_size > MAX_LWZ_BITS )
10 +        return -1;
11  
12      if (flag) {
13         set_code_size = input_code_size;