[rubygem-rmagick] add patch

Mamoru TASAKA mtasaka at fedoraproject.org
Fri Jan 30 15:46:33 UTC 2015


commit 69efd84f0161e1924ff0b0e51148d6d0644d2ed6
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date:   Sat Jan 31 00:46:21 2015 +0900

    add patch

 RMagick-2.13.1-format-security.patch |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/RMagick-2.13.1-format-security.patch b/RMagick-2.13.1-format-security.patch
new file mode 100644
index 0000000..b098930
--- /dev/null
+++ b/RMagick-2.13.1-format-security.patch
@@ -0,0 +1,20 @@
+--- RMagick-2.13.1/ext/RMagick/rmutil.c.format	2009-12-21 19:34:58.000000000 +0900
++++ RMagick-2.13.1/ext/RMagick/rmutil.c	2013-12-03 22:56:36.000000000 +0900
+@@ -1609,7 +1609,7 @@
+ void
+ rm_fatal_error_handler(const ExceptionType severity, const char *reason, const char *description)
+ {
+-    rb_raise(Class_FatalImageMagickError, GetLocaleExceptionMessage(severity, reason));
++    rb_raise(Class_FatalImageMagickError, "%s", GetLocaleExceptionMessage(severity, reason));
+     description = description;
+ }
+ 
+@@ -1649,7 +1649,7 @@
+             exception->description ? ": " : "",
+             exception->description ? GetLocaleExceptionMessage(exception->severity, exception->description) : "");
+         msg[sizeof(msg)-1] = '\0';
+-        rb_warning(msg);
++        rb_warning("%s", msg);
+ 
+         // Caller deletes ExceptionInfo...
+ 


More information about the scm-commits mailing list