diff options
author | Rafael Laboissière <rafael@debian.org> | 2021-11-14 14:00:12 -0300 |
---|---|---|
committer | Rafael Laboissière <rafael@debian.org> | 2021-11-14 14:06:57 -0300 |
commit | b21d86a50c36b7e45c48e8052119704b94526ffb (patch) | |
tree | eac0a998974c28d9c69cb077bd826213646d4102 | |
parent | f8f37c71fb466dda44fe5bba0bf0d9b140e2be5a (diff) |
d/p/format-security-error.patch: New patch
-rw-r--r-- | debian/patches/format-security-error.patch | 45 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 46 insertions, 0 deletions
diff --git a/debian/patches/format-security-error.patch b/debian/patches/format-security-error.patch new file mode 100644 index 0000000..7159c8e --- /dev/null +++ b/debian/patches/format-security-error.patch @@ -0,0 +1,45 @@ +Description: Use string literal in call to error() function + Compilation errors are triggered when option -Werror=format-security + is used. +Author: Rafael Laboissière <rafael@debian.org> +Forwarded: https://savannah.gnu.org/bugs/index.php?61484 +Last-Update: 2021-11-14 + +--- octave-octclip-2.0.1.orig/src/_oc_polybool.cc ++++ octave-octclip-2.0.1/src/_oc_polybool.cc +@@ -113,7 +113,7 @@ DEFUN_DLD(_oc_polybool,args,,HELPTEXT) + "Incorrect number of input arguments\n\t" + "See help _oc_polybool"); + //error message +- error(errorText); ++ error("%s", errorText); + } + else + { +@@ -161,7 +161,7 @@ DEFUN_DLD(_oc_polybool,args,,HELPTEXT) + //error text + sprintf(&errorText[strlen(errorText)],"Error in memory allocation"); + //error message +- error(errorText); ++ error("%s", errorText); + //exit + return outputList; + } +@@ -199,7 +199,7 @@ DEFUN_DLD(_oc_polybool,args,,HELPTEXT) + "The third input argument (op=%s) is not correct", + opchar.c_str()); + //error message +- error(errorText); ++ error("%s", errorText); + //exit + return outputList; + } +@@ -217,7 +217,7 @@ DEFUN_DLD(_oc_polybool,args,,HELPTEXT) + //error text + sprintf(&errorText[strlen(errorText)],"Error in memory allocation"); + //error message +- error(errorText); ++ error("%s", errorText); + //exit + return outputList; + } diff --git a/debian/patches/series b/debian/patches/series index 3c3b856..bb2f98e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ do-not-strip-debugging-symbols.patch spelling-doc-oc-polybool.patch honor-cflags-cxxflags.patch +format-security-error.patch |