mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 00:53:34 +03:00
Remove an incorrect use of the address operator
The address of the local variable created_threads is a different location than the data it points to. Incorrectly treating these values as being the same can cause out-of-bounds writes to the stack. Resolves #59
This commit is contained in:
parent
9ee747de28
commit
718e083ae1
1 changed files with 1 additions and 1 deletions
|
|
@ -448,7 +448,7 @@ background_thread0_work(tsd_t *tsd) {
|
||||||
}
|
}
|
||||||
if (check_background_thread_creation(tsd,
|
if (check_background_thread_creation(tsd,
|
||||||
const_max_background_threads, &n_created,
|
const_max_background_threads, &n_created,
|
||||||
(bool *)&created_threads)) {
|
created_threads)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
background_work_sleep_once(
|
background_work_sleep_once(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue