*
* GIF image routines for the Common UNIX Printing System (CUPS).
*
- * Copyright 2007 by Apple Inc.
+ * Copyright 2007-2008 by Apple Inc.
* Copyright 1993-2007 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
pass = 0;
code_size = getc(fp);
+ if (!pixels)
+ return (-1);
+
if (gif_read_lzw(fp, 1, code_size) < 0)
+ {
+ free(pixels);
return (-1);
+ }
temp = pixels;
while ((pixel = gif_read_lzw(fp, 0, code_size)) >= 0)