diff options
author | Maxim Kuvyrkov <maxim@kugelworks.com> | 2013-12-24 09:44:50 +1300 |
---|---|---|
committer | Maxim Kuvyrkov <maxim@kugelworks.com> | 2014-01-05 14:58:57 +1300 |
commit | 3db0119ef56decc402827d5b84774fa4487f6cd4 (patch) | |
tree | 3b6095bfdf6353360a8f4f7a1be02d6b2d78f8ed /test-skeleton.c | |
parent | 15256e58adc62d8d62c03b2b3ba526b468758702 (diff) | |
download | glibc-3db0119ef56decc402827d5b84774fa4487f6cd4.tar.gz glibc-3db0119ef56decc402827d5b84774fa4487f6cd4.tar.xz glibc-3db0119ef56decc402827d5b84774fa4487f6cd4.zip |
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. Conflicts: ChangeLog NEWS
Diffstat (limited to 'test-skeleton.c')
0 files changed, 0 insertions, 0 deletions