Skip to content
Commit 15a94e66 authored by Florian Weimer's avatar Florian Weimer
Browse files

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: default avatarDJ Delorie <dj@redhat.com>
parent ba0ca361
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment