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:
Carl Shapiro 2025-12-23 14:18:43 -08:00 committed by Guangli Dai
parent 365747bc8d
commit 5f353dc283

View file

@ -448,7 +448,7 @@ background_thread0_work(tsd_t *tsd) {
}
if (check_background_thread_creation(tsd,
const_max_background_threads, &n_created,
(bool *)&created_threads)) {
created_threads)) {
continue;
}
background_work_sleep_once(