mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +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. Closes: facebook/jemalloc#59
This commit is contained in:
parent
365747bc8d
commit
5f353dc283
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,
|
||||
const_max_background_threads, &n_created,
|
||||
(bool *)&created_threads)) {
|
||||
created_threads)) {
|
||||
continue;
|
||||
}
|
||||
background_work_sleep_once(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue