]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the first couple of AddressSanitizer violations in usr.bin/top.
authordim <dim@FreeBSD.org>
Sun, 10 Feb 2019 13:44:36 +0000 (13:44 +0000)
committerdim <dim@FreeBSD.org>
Sun, 10 Feb 2019 13:44:36 +0000 (13:44 +0000)
commite54591675d0cdab36901c60a4a83dcb39aeba5d7
treedfa73f0ef519e56388d1f2d38cc462871959ef52
parent63902403518c404be9b78c05163bfb161373b3d5
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
usr.bin/top/display.c