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

Commits

mattias  committed 2a9a5e6

- #101, _gdCreateFromFile() can crash if gdImageCreate fails

  • Participants
  • Parent commits 344d241
  • Branches GD-2.0

Comments (0)

Files changed (1)

File src/gd_gd.c

View file
     {
       im = gdImageCreate (*sx, *sy);
     }
+  if (!im)
+  	{
+		goto fail1;
+	}
   if (!_gdGetColors (in, im, gd2xFlag))
     {
       goto fail2;