mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Fix possible race when freeing object in fast bin list.
This commit is contained in:
@@ -4822,6 +4822,7 @@ _int_free(mstate av, mchunkptr p)
|
||||
goto errout;
|
||||
}
|
||||
p->fd = fd = old;
|
||||
atomic_full_barrier ();
|
||||
}
|
||||
while ((old = catomic_compare_and_exchange_val_acq (fb, p, fd)) != fd);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user