[packages/kernel-tools] - added format patch (-Werror=format-security fix for hv tools)

qboosh qboosh at pld-linux.org
Sun Aug 28 16:41:04 CEST 2016


commit c6cf550817346e125073700fab1f3c072fdab8c9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Aug 28 16:42:21 2016 +0200

    - added format patch (-Werror=format-security fix for hv tools)

 kernel-tools-format.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/kernel-tools-format.patch b/kernel-tools-format.patch
new file mode 100644
index 0000000..e700ac7
--- /dev/null
+++ b/kernel-tools-format.patch
@@ -0,0 +1,11 @@
+--- linux-4.7/tools/hv/hv_kvp_daemon.c.orig	2016-07-24 21:23:50.000000000 +0200
++++ linux-4.7/tools/hv/hv_kvp_daemon.c	2016-08-27 20:27:31.468372672 +0200
+@@ -702,7 +702,7 @@
+ 	if (dir == NULL)
+ 		return NULL;
+ 
+-	snprintf(dev_id, sizeof(dev_id), kvp_net_dir);
++	snprintf(dev_id, sizeof(dev_id), "%s", kvp_net_dir);
+ 	q = dev_id + strlen(kvp_net_dir);
+ 
+ 	while ((entry = readdir(dir)) != NULL) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel-tools.git/commitdiff/c6cf550817346e125073700fab1f3c072fdab8c9



More information about the pld-cvs-commit mailing list