Skip to content
Commit 16554464 authored by DJ Delorie's avatar DJ Delorie
Browse files

Correct range checking in mallopt/mxfast/tcache [BZ #25194]



do_set_tcache_max, do_set_mxfast:
Fix two instances of comparing "size_t < 0"
Both cases have upper limit, so the "negative value" case
is already handled via overflow semantics.

do_set_tcache_max, do_set_tcache_count:
Fix return value on error.  Note: currently not used.

mallopt:
pass return value of helper functions to user.  Behavior should
only be actually changed for mxfast, where we restore the old
(pre-tunables) behavior.

Reviewed-by: default avatarCarlos O'Donell <carlos@redhat.com>
parent 1f7525d9
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