HomeFreeBSD

size: Avoid returning a stack pointer from xlatetom().

Description

size: Avoid returning a stack pointer from xlatetom().

The callers only check whether the returned pointer is non-NULL, so this
was harmless in practice, but change the return value to guard against
the issue.

CID: 1411597
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on
Parents
rS357538: elfcopy: Avoid leaking dst's fd when we fail to copy a file.
Branches
Unknown
Tags
Unknown