mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 00:57:19 +03:00
Check for 0 input when setting max_background_thread through mallctl.
Reported by @nc7s.
This commit is contained in:
parent
20cc983314
commit
607b866035
2 changed files with 7 additions and 1 deletions
|
|
@ -2181,7 +2181,8 @@ max_background_threads_ctl(tsd_t *tsd, const size_t *mib,
|
|||
ret = 0;
|
||||
goto label_return;
|
||||
}
|
||||
if (newval > opt_max_background_threads) {
|
||||
if (newval > opt_max_background_threads ||
|
||||
newval == 0) {
|
||||
ret = EINVAL;
|
||||
goto label_return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue