Brooks Davis 72f0a13e60 Correct an out of bounds read with HN_AUTOSCALE and very large numbers.
The maximum scale is 6 (K, M, G, T, P, E) (B is 0).

Overly large explict scales were checked correctly, but for sufficently
large numbers HN_AUTOSCALE would get to 7 resulting in an out of bounds
read.

Found with humanize_number_test and CHERI bounds checking.

Reviewed by:	emaste
Obtained from:	CheriBSD
MFC after:	1 week
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D10376
2017-04-13 15:49:32 +00:00
..
2017-03-11 00:09:54 +00:00
2017-02-28 23:42:47 +00:00
2016-05-18 15:25:45 +00:00
2016-05-18 15:25:45 +00:00
2017-02-28 23:42:47 +00:00
2017-03-03 06:31:47 +00:00
2016-05-18 15:25:45 +00:00
2016-05-18 15:25:45 +00:00
2015-11-06 12:02:24 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00