summaryrefslogtreecommitdiffstats
path: root/gd-2.0.35-overflow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gd-2.0.35-overflow.patch')
-rw-r--r--gd-2.0.35-overflow.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/gd-2.0.35-overflow.patch b/gd-2.0.35-overflow.patch
new file mode 100644
index 0000000..f71c953
--- /dev/null
+++ b/gd-2.0.35-overflow.patch
@@ -0,0 +1,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;