projects
/
platform
/
core
/
connectivity
/
libnet-client.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c4d1a0
)
Fix stringop-truncation
60/235060/3
accepted/tizen/unified/20200603.150201
submit/tizen/20200602.064233
author
Cheoleun Moon
<chleun.moon@samsung.com>
Tue, 2 Jun 2020 03:45:23 +0000
(12:45 +0900)
committer
Cheoleun Moon
<chleun.moon@samsung.com>
Tue, 2 Jun 2020 05:43:07 +0000
(14:43 +0900)
Change-Id: Idaa330703734f280c7b1ebbf52d5bfc6226437fc
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
src/network-profile-intf.c
patch
|
blob
|
history
diff --git
a/src/network-profile-intf.c
b/src/network-profile-intf.c
index
3ac72a9
..
b892555
100755
(executable)
--- a/
src/network-profile-intf.c
+++ b/
src/network-profile-intf.c
@@
-3684,8
+3684,7
@@
EXPORT_API int net_foreach_ipv6_address(net_device_t device_type,
}
while (fgets(buf, sizeof(buf), fp) != NULL) {
- stpncpy(str, buf, NET_IPV6_ADDRESS_LEN);
- str[NET_IPV6_ADDRESS_LEN] = '\0';
+ g_strlcpy(str, buf, NET_IPV6_ADDRESS_LEN + 1);
/* LCOV_EXCL_START */
switch (device_type) {
case NET_DEVICE_WIFI: