1. libgd
  2. Untitled project
  3. gd-libgd

Source

gd-libgd / src / gd_gif_in.c

Diff from to

File src/gd_gif_in.c

  • Ignore whitespace
        /*} */
 
        while ((v = LWZReadByte(fd, &sd, FALSE, c, ZeroDataBlockP)) >= 0 ) {
+               if (v >= gdMaxColors) {
+                       v = 0;
+               }
+
                /* This how we recognize which colors are actually used. */
                if (im->open[v]) {
                        im->open[v] = 0;