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:
Carl Shapiro 2025-12-23 14:18:43 -08:00 committed by Guangli Dai
parent 7f043becad
commit 0d7a26e9b6

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(