Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Hering <ohering@suse.de>2017-10-20 12:20:33 +0200
committerOlaf Hering <ohering@suse.de>2017-10-20 12:23:28 +0200
commitc6e68e69ea532a81e9a874430428c245a866ab65 (patch)
tree9c60dcd3ece8fff60318226d87e0a4d792d8c790
parent5f4f0d7600c87b9d283eee731c635adaba445dd0 (diff)
Tools: hv: fix snprintf warning in kvp_daemon (fate#323887).
-rw-r--r--patches.suse/msft-hv-1440-Tools-hv-fix-snprintf-warning-in-kvp_daemon.patch30
-rw-r--r--series.conf1
2 files changed, 31 insertions, 0 deletions
diff --git a/patches.suse/msft-hv-1440-Tools-hv-fix-snprintf-warning-in-kvp_daemon.patch b/patches.suse/msft-hv-1440-Tools-hv-fix-snprintf-warning-in-kvp_daemon.patch
new file mode 100644
index 0000000000..df097a7273
--- /dev/null
+++ b/patches.suse/msft-hv-1440-Tools-hv-fix-snprintf-warning-in-kvp_daemon.patch
@@ -0,0 +1,30 @@
+From: Olaf Hering <olaf@aepfle.de>
+Date: Thu, 10 Aug 2017 15:45:15 -0700
+Patch-mainline: v4.14-rc1
+Subject: Tools: hv: fix snprintf warning in kvp_daemon
+Git-commit: 3619350cf0d630d83dedd9c0d7d297da211f5ff0
+References: fate#323887
+
+Increase buffer size so that "_{-INT_MAX}" will fit.
+Spotted by the gcc7 snprintf checker.
+
+Signed-off-by: Olaf Hering <olaf@aepfle.de>
+Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Acked-by: Olaf Hering <ohering@suse.de>
+---
+ tools/hv/hv_kvp_daemon.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c
+--- a/tools/hv/hv_kvp_daemon.c
++++ b/tools/hv/hv_kvp_daemon.c
+@@ -1136,7 +1136,7 @@ static int process_ip_string(FILE *f, char *ip_string, int type)
+ int i = 0;
+ int j = 0;
+ char str[256];
+- char sub_str[10];
++ char sub_str[13];
+ int offset = 0;
+
+ memset(addr, 0, sizeof(addr));
diff --git a/series.conf b/series.conf
index 70316e3ef3..9c08aa6543 100644
--- a/series.conf
+++ b/series.conf
@@ -1690,6 +1690,7 @@
patches.suse/msft-hv-1437-Drivers-hv-balloon-Show-the-max-dynamic-memory-assig.patch
patches.suse/msft-hv-1438-Drivers-hv-balloon-Initialize-last_post_time-on-star.patch
patches.suse/msft-hv-1439-Drivers-hv-kvp-Use-MAX_ADAPTER_ID_SIZE-for-translati.patch
+ patches.suse/msft-hv-1440-Tools-hv-fix-snprintf-warning-in-kvp_daemon.patch
patches.suse/suse-hv-guest-os-id.patch
patches.suse/suse-hv-kvp_on_msg.dbg.patch