Module: check_mk
Branch: master
Commit: bc89e46b5204a00fcdebf71ac40c55b86221294b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bc89e46b5204a0…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Oct 23 15:47:42 2017 +0200
5191 FIX Fixed memory corruption in check_http.
There was a bug in the password store handling, leading to memory
corruption. This has been fixed.
Change-Id: Id555fa07d97667194b6e5f18353701754f5a8362
---
.werks/5191 | 11 +++++++++++
.../monitoring-plugins/patches/0003-cmk-password-store.dif | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/5191 b/.werks/5191
new file mode 100644
index 0000000..a7654ba
--- /dev/null
+++ b/.werks/5191
@@ -0,0 +1,11 @@
+Title: Fixed memory corruption in check_http.
+Level: 1
+Component: omd
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1508765962
+Class: fix
+
+There was a bug in the password store handling, leading to memory
+corruption. This has been fixed.
diff --git a/omd/packages/monitoring-plugins/patches/0003-cmk-password-store.dif
b/omd/packages/monitoring-plugins/patches/0003-cmk-password-store.dif
index 8b9ec68..870f66d 100644
--- a/omd/packages/monitoring-plugins/patches/0003-cmk-password-store.dif
+++ b/omd/packages/monitoring-plugins/patches/0003-cmk-password-store.dif
@@ -74,7 +74,7 @@ diff -Nur monitoring-plugins-2.1.1.orig/plugins/cmk_password_store.h
monitoring-
+ */
+
+ /* Create copy of arguments and drop first argument */
-+ char **new_argv = (char **)malloc(sizeof(char *) * *argc);
++ char **new_argv = (char **)malloc(sizeof(char *) * (*argc + 1));
+ new_argv[0] = argv[0];
+ unsigned i;
+ for (i=2; i<*argc; i++)