mirror of
https://github.com/moparisthebest/socat
synced 2024-12-22 06:58:47 -05:00
Red Hat issue 1022062: strcpy misuse in xiosetsockaddrenv_ip4()
This commit is contained in:
parent
520e84aba7
commit
2e17542be7
2
CHANGES
2
CHANGES
@ -30,6 +30,8 @@ corrections:
|
|||||||
On big endian platforms with type long >32bit the range option applied a
|
On big endian platforms with type long >32bit the range option applied a
|
||||||
bad base address. Thanks to hejia hejia for reporting and fixing this bug.
|
bad base address. Thanks to hejia hejia for reporting and fixing this bug.
|
||||||
|
|
||||||
|
Red Hat issue 1022062: strcpy misuse in xiosetsockaddrenv_ip4()
|
||||||
|
|
||||||
Red Hat issue 1022048: strncpy hardening: corrected suspicious strncpy()
|
Red Hat issue 1022048: strncpy hardening: corrected suspicious strncpy()
|
||||||
uses
|
uses
|
||||||
|
|
||||||
|
@ -108,8 +108,7 @@ xiosetsockaddrenv_ip4(int idx, char *namebuff, size_t namelen,
|
|||||||
switch (idx) {
|
switch (idx) {
|
||||||
case 0:
|
case 0:
|
||||||
strcpy(namebuff, "ADDR");
|
strcpy(namebuff, "ADDR");
|
||||||
strcpy(valuebuff,
|
inet4addr_info(ntohl(sa->sin_addr.s_addr), valuebuff, valuelen);
|
||||||
inet4addr_info(ntohl(sa->sin_addr.s_addr), valuebuff, valuelen));
|
|
||||||
switch (ipproto) {
|
switch (ipproto) {
|
||||||
case IPPROTO_TCP:
|
case IPPROTO_TCP:
|
||||||
case IPPROTO_UDP:
|
case IPPROTO_UDP:
|
||||||
|
Loading…
Reference in New Issue
Block a user