summaryrefslogtreecommitdiffstats
path: root/gd-2.0.35-overflow.patch
blob: f71c953c29026426df08955a00d16b2b0683e66d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- gd-2.0.35/gd_gd.c.pom	2006-04-05 17:52:22.000000000 +0200
+++ gd-2.0.35/gd_gd.c	2007-09-05 11:31:39.000000000 +0200
@@ -149,6 +149,10 @@ _gdCreateFromFile (gdIOCtx * in, int *sx
     {
       im = gdImageCreate (*sx, *sy);
     }
+  if (!im) 
+    { 
+      goto fail1; 
+    } 
   if (!_gdGetColors (in, im, gd2xFlag))
     {
       goto fail2;