mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 22:03:07 +00: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. Closes: facebook/jemalloc#59
This commit is contained in:
committed by
Guangli Dai
parent
365747bc8d
commit
5f353dc283
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user