HomeFreeBSD

The getlogin_basic() function can return a 0 status with a NULL

Description

The getlogin_basic() function can return a 0 status with a NULL
pointer for the login name (result). Make sure to handle that
case properly. Improve robustness by checking namelen and then
nul-terminating the provided buffer to simplify subsequent logic.

Obtained from: Juniper Networks, Inc.
MFC after: 1 week

Details

Provenance
marcelAuthored on
Parents
rS264160: Remove code under PMAP_CACHE_VIVT that is not compiled anymore.
Branches
Unknown
Tags
Unknown

Event Timeline