summaryrefslogtreecommitdiff
path: root/graphics/libwmf/patches/patch-src_extra_gd_gdft.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libwmf/patches/patch-src_extra_gd_gdft.c')
-rw-r--r--graphics/libwmf/patches/patch-src_extra_gd_gdft.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/libwmf/patches/patch-src_extra_gd_gdft.c b/graphics/libwmf/patches/patch-src_extra_gd_gdft.c
new file mode 100644
index 00000000000..19b7f1796ce
--- /dev/null
+++ b/graphics/libwmf/patches/patch-src_extra_gd_gdft.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_extra_gd_gdft.c,v 1.1 2015/07/17 12:33:47 sevan Exp $
+
+CVE-2007-0455 - Buffer overflow in the gdImageStringFTEx
+
+--- src/extra/gd/gdft.c.orig 2005-07-27 20:35:05.000000000 +0000
++++ src/extra/gd/gdft.c
+@@ -809,7 +809,7 @@ gdImageStringFT (gdImage * im, int *brec
+ {
+ ch = c & 0xFF; /* don't extend sign */
+ }
+- next++;
++ if (*next) next++;
+ }
+ else
+ {