mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
Fix possible race when freeing object in fast bin list.
This commit is contained in:
parent
2fd0cd8b52
commit
6cbbaa50aa
@ -1,3 +1,8 @@
|
||||
2009-07-02 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
|
||||
adding to fast bin list.
|
||||
|
||||
2009-07-01 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user