gd/gd-2.0.35-overflow.patch
2007-09-18 08:07:15 +00:00

14 lines
350 B
Diff

--- 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;