HomeFreeBSD

Fix the first couple of AddressSanitizer violations in usr.bin/top.

Description

Fix the first couple of AddressSanitizer violations in usr.bin/top.

Avoid setting zero bytes beyond the length of the 'thisline' parameters
in i_process() and u_process(), and don't attempt to memset a negative
number of bytes.

MFC after: 1 week

Details

Provenance
dimAuthored on
Parents
rS343958: Fix multiple warnings in usr.bin/top about variables shadowing global
Branches
Unknown
Tags
Unknown