FreeBSD Bugzilla – Attachment 599 Details for
Bug 2579
potential security hole in rcmd.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 788 bytes, created by
Julian Assange
on 1997-01-25 15:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Julian Assange
Created:
1997-01-25 15:00:01 UTC
Size:
788 bytes
patch
obsolete
>--- src/lib/libc/net/rcmd.c.orig Tue Aug 13 00:14:09 1996 >+++ src/lib/libc/net/rcmd.c Sun Jan 26 01:26:58 1997 >@@ -104,7 +104,7 @@ > sin.sin_len = sizeof(struct sockaddr_in); > sin.sin_family = hp->h_addrtype; > sin.sin_port = rport; >- bcopy(hp->h_addr_list[0], &sin.sin_addr, hp->h_length); >+ bcopy(hp->h_addr_list[0], &sin.sin_addr, MIN(hp->h_length, sizeof sin.sin_addr)); > if (connect(s, (struct sockaddr *)&sin, sizeof(sin)) >= 0) > break; > (void)close(s); >@@ -125,7 +125,7 @@ > errno = oerrno; > perror(0); > hp->h_addr_list++; >- bcopy(hp->h_addr_list[0], &sin.sin_addr, hp->h_length); >+ bcopy(hp->h_addr_list[0], &sin.sin_addr, MIN(hp->h_length, sizeof sin.sin_addr)); > (void)fprintf(stderr, "Trying %s...\n", > inet_ntoa(sin.sin_addr)); > continue;
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 2579
: 599