Be extra paranoid about trusting the length of the data returned by
gethostbyaddr. Submitted by: Julian Assange
This commit is contained in:
parent
006b3faebb
commit
5635438650
@ -280,7 +280,7 @@ umountfs(name, typelist)
|
||||
memset(&saddr, 0, sizeof(saddr));
|
||||
saddr.sin_family = AF_INET;
|
||||
saddr.sin_port = 0;
|
||||
memmove(&saddr.sin_addr, hp->h_addr, hp->h_length);
|
||||
memmove(&saddr.sin_addr, hp->h_addr, MIN(hp->h_length, sizeof(saddr.sin_addr)));
|
||||
pertry.tv_sec = 3;
|
||||
pertry.tv_usec = 0;
|
||||
so = RPC_ANYSOCK;
|
||||
|
Loading…
Reference in New Issue
Block a user