Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1709088 > unrolled thread

[PATCH 0/2] Tools: hv: Miscellaneous adjustments

Started bykys@exchange.microsoft.com
First post2017-08-11 00:50 +0200
Last post2017-08-11 00:50 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] Tools: hv: Miscellaneous adjustments  kys@exchange.microsoft.com - 2017-08-11 00:50 +0200
    [PATCH 1/2] Tools: hv: fix snprintf warning in kvp_daemon kys@exchange.microsoft.com - 2017-08-11 00:50 +0200

#1709088 — [PATCH 0/2] Tools: hv: Miscellaneous adjustments

Fromkys@exchange.microsoft.com
Date2017-08-11 00:50 +0200
Subject[PATCH 0/2] Tools: hv: Miscellaneous adjustments
Message-ID<ud4r8-3DS-5@gated-at.bofh.it>
From: K. Y. Srinivasan <kys@microsoft.com>

Miscellaneous adjustments.

Olaf Hering (2):
  Tools: hv: fix snprintf warning in kvp_daemon
  Tools: hv: update buffer handling in hv_fcopy_daemon

 tools/hv/hv_fcopy_daemon.c |   32 +++++++++++++++++---------------
 tools/hv/hv_kvp_daemon.c   |    2 +-
 2 files changed, 18 insertions(+), 16 deletions(-)

[toc] | [next] | [standalone]


#1709090 — [PATCH 1/2] Tools: hv: fix snprintf warning in kvp_daemon

Fromkys@exchange.microsoft.com
Date2017-08-11 00:50 +0200
Subject[PATCH 1/2] Tools: hv: fix snprintf warning in kvp_daemon
Message-ID<ud4r8-3DS-11@gated-at.bofh.it>
In reply to#1709088
From: Olaf Hering <olaf@aepfle.de>

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>
---
 tools/hv/hv_kvp_daemon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c
index 88b20e0..eaa3bec 100644
--- 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));
-- 
1.7.1

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web