Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 440980 Details for
Bug 588934
>=net-misc/dhcp-4.3.3_p1: discover.c:discover_interfaces: __strcpy_chk fails randomly
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for incorrect use of strncpy
dhcp-4.3.4-dhclient-discover.patch (text/plain), 464 bytes, created by
Mateusz Lenik
on 2016-07-18 06:26:50 UTC
(
hide
)
Description:
patch for incorrect use of strncpy
Filename:
MIME Type:
Creator:
Mateusz Lenik
Created:
2016-07-18 06:26:50 UTC
Size:
464 bytes
patch
obsolete
>--- a/common/discover.c.orig 2016-07-18 07:45:42.145655478 +0200 >+++ b/common/discover.c 2016-07-18 07:47:40.868960894 +0200 >@@ -547,7 +547,8 @@ > log_error("Interface name '%s' too long", name); > return 0; > } >- strncpy(info->name, name, sizeof(info->name) - 1); >+ strncpy(info->name, name, sizeof(info->name)); >+ info->name[sizeof(info->name) - 1] = '\0'; > > #ifdef ALIAS_NAMED_PERMUTED > /* interface aliases look like "eth0:1" or "wlan1:3" */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 588934
: 440980 |
440982