Maxim Kuvyrkov 362b47fe09 Fix race in free() of fastbin chunk: BZ #15073
Perform sanity check only if we have_lock.  Due to lockless nature of fastbins
we need to be careful derefencing pointers to fastbin entries (chunksize(old)
in this case) in multithreaded environments.

The fix is to add have_lock to the if-condition checks.  The rest of the patch
only makes code more readable.

	* malloc/malloc.c (_int_free): Perform sanity check only if we
	have_lock.
2013-12-24 09:44:50 +13:00
..
2013-03-08 21:27:42 +00:00
2013-03-08 16:46:07 +00:00
2013-03-08 21:27:42 +00:00
2013-11-21 16:57:37 -05:00
2013-09-09 09:20:09 +01:00
2007-12-16 22:57:57 +00:00
2012-01-01 07:17:21 -05:00