summarylogtreecommitdiffstats
path: root/format_security.patch
diff options
context:
space:
mode:
Diffstat (limited to 'format_security.patch')
-rw-r--r--format_security.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/format_security.patch b/format_security.patch
new file mode 100644
index 000000000000..55dc459bfd64
--- /dev/null
+++ b/format_security.patch
@@ -0,0 +1,39 @@
+diff -u -r Metview-5.12.0-Source-orig/metview/src/Macro/mvector.cc Metview-5.12.0-Source/metview/src/Macro/mvector.cc
+--- Metview-5.12.0-Source-orig/metview/src/Macro/mvector.cc 2021-05-28 14:08:01.975699414 +0200
++++ Metview-5.12.0-Source/metview/src/Macro/mvector.cc 2021-05-28 14:08:25.042614971 +0200
+@@ -19,7 +19,7 @@
+ /*
+
+ To do: (o = to do, * = done)
+-
++
+ * allow nil & vector
+ * allow vector & vector
+ * vector op vector
+@@ -687,7 +687,7 @@
+ sprintf(typeBuffer, "%-10s", CArray::stringFromValuesType(values->type()).c_str());
+
+ fprintf(f, "METVIEW_VECTOR");
+- fprintf(f, typeBuffer);
++ fprintf(f, "%s", typeBuffer);
+
+ int size = values->count();
+ fwrite(&size, sizeof(int), 1, f); // write the number of values
+@@ -1231,7 +1231,7 @@
+ /*
+ class VectorProductFunction : public Function {
+ public:
+- VectorProductFunction(char *n) : Function(n,2,tvector,tvector)
++ VectorProductFunction(char *n) : Function(n,2,tvector,tvector)
+ {info = "Vector product";};
+ virtual Value Execute(int arity,Value *arg);
+ };
+@@ -1254,7 +1254,7 @@
+
+ for(int i=0;i<a->Count();i++)
+ ;
+-
++
+ return Value(c);
+ }
+ */