linux-brain/tools/hv
Dexuan Cui 1081bfdb18 Tools: hv: kvp: Fix a warning of buffer overflow with gcc 8.0.1
[ Upstream commit 4fcba7802c ]

The patch fixes:

hv_kvp_daemon.c: In function 'kvp_set_ip_info':
hv_kvp_daemon.c:1305:2: note: 'snprintf' output between 41 and 4136 bytes
into a destination of size 4096

The "(unsigned int)str_len" is to avoid:

hv_kvp_daemon.c:1309:30: warning: comparison of integer expressions of
different signedness: 'int' and 'long unsigned int' [-Wsign-compare]

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:45:58 +01:00
..
hv_fcopy_daemon.c tools: hv: fcopy: set 'error' in case an unknown operation was requested 2018-10-10 08:54:28 +02:00
hv_get_dhcp_info.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hv_get_dns_info.sh Tools: hv: Add an example script to retrieve DNS entries 2012-09-04 15:59:27 -07:00
hv_kvp_daemon.c Tools: hv: kvp: Fix a warning of buffer overflow with gcc 8.0.1 2019-02-12 19:45:58 +01:00
hv_set_ifconfig.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hv_vss_daemon.c tools: hv: fix compiler warnings about major/target_fname 2018-05-30 07:52:36 +02:00
lsvmbus License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile tools: fix cross-compile var clobbering 2019-01-13 10:01:02 +01:00