HomeFreeBSD

MFC r344381:

Description

MFC r344381:

Fix more AddressSanitizer violations in usr.bin/top

In line_update(), set lastcol correctly after moving to any non-zero
column, so the "overwrite old stuff" part does not attempt to address
negative offsets in the current line.

Rewrite setup_buffer() to always allocate at least 80 characters,
otherwise various calls to summary_format() will overwrite the end of
the buffers, if the screen width gets small enough.

Details

Provenance
dimAuthored on
Parents
rS344640: Remove #ifdef code to support FreeBSD versions that haven't been
Branches
Unknown
Tags
Unknown