HomeFreeBSD

MFC r319852:

Description

MFC r319852:

Fix buffer lengths.

After r319369, the RPC code validates caller supplied buffer length in
taddr2uaddr. When no -h is specified, the sizeof(ai_addr) is used,
which is always smaller than the required size and therefore uaddr
would be NULL, causing the kernel to copyin() from userland NULL
and fail with EFAULT.

Details

Provenance
delphijAuthored on
Parents
rS319965: MFC r318995
Branches
Unknown
Tags
Unknown