summaryrefslogtreecommitdiffstats
path: root/gd-2.0.35-overflow.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-04-21 10:14:58 +0200
committerRemi Collet <fedora@famillecollet.com>2013-04-21 10:14:58 +0200
commitb5b7b21e1511b70f07ac93b6f87d2a835e99164d (patch)
tree2e0db5b13f7bc5cee26d7539c326ca1dbc32b6c8 /gd-2.0.35-overflow.patch
gd: import from rawhide
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;