malloc: Switch global_max_fast to uint8_t
authorFlorian Weimer <fweimer@redhat.com>
Thu, 13 Oct 2022 03:45:41 +0000 (05:45 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 13 Oct 2022 03:45:41 +0000 (05:45 +0200)
commit15a94e6668a6d7c5697e805d8d67f1d102d0d52e
treebd703f55d1e50d62cfa2572685a194f8eab81a4d
parentba0ca36132d72d88f577062520b479b4b97df114
malloc: Switch global_max_fast to uint8_t

MAX_FAST_SIZE is 160 at most, so a uint8_t is sufficient.  This makes
it harder to use memory corruption, by overwriting global_max_fast
with a large value, to fundamentally alter malloc behavior.

Reviewed-by: DJ Delorie <dj@redhat.com>
malloc/malloc.c