From 5f353dc28383d070ffa540d1679153f8101e2aa7 Mon Sep 17 00:00:00 2001 From: Carl Shapiro Date: Tue, 23 Dec 2025 14:18:43 -0800 Subject: [PATCH] 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 --- src/background_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background_thread.c b/src/background_thread.c index 2eb08dd2..82911ee7 100644 --- a/src/background_thread.c +++ b/src/background_thread.c @@ -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(