aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ImageMagick/files/patch-magick-string.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ImageMagick/files/patch-magick-string.c')
-rw-r--r--graphics/ImageMagick/files/patch-magick-string.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/ImageMagick/files/patch-magick-string.c b/graphics/ImageMagick/files/patch-magick-string.c
new file mode 100644
index 000000000000..3e07953f046a
--- /dev/null
+++ b/graphics/ImageMagick/files/patch-magick-string.c
@@ -0,0 +1,13 @@
+Index: magick/string.c
+===================================================================
+--- magick/string.c (revision 5596)
++++ magick/string.c (revision 5597)
+@@ -734,6 +734,8 @@
+ register size_t
+ n;
+
++ if (source == (const char *) NULL)
++ return(0);
+ p=source;
+ q=destination;
+ for (n=length; n > 4; n-=4)