Commits

pajoye  committed 2c18991

- #14, one more sanity check in gd_gd2

  • Participants
  • Parent commits e5dac8c

Comments (0)

Files changed (1)

File src/gd_gd2.c

       gdSeek (out, idxPos + idxSize);
 
       chunkIdx = gdCalloc (idxSize * sizeof (t_chunk_info), 1);
+      if (!chunkIdx) {
+        goto fail;
+      }
     };
 
   _gdPutColors (im, out);