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.

Approved by: re (kib)

Details

Provenance
delphijAuthored on
Parents
rS319976: MFC r319869:
Branches
Unknown
Tags
Unknown