[PATCH] malloc: Test various special cases related to allocation failures
Florian Weimer
fweimer@redhat.com
Mon Dec 28 19:42:00 GMT 2015
This test case exercises unusual code paths in allocation functions,
related to allocation failures. Specifically, the test can reveal
the following bugs:
(a) calloc returns non-zero memory on fallback to sysmalloc.
(b) calloc can self-deadlock because it fails to release
the arena lock on certain allocation failures.
(c) pvalloc can dereference a NULL arena pointer.
(a) and (b) appear specific to a faulty downstream backport.
(c) was fixed as part of commit 10ad46bc6526edc5c7afcc57112da96917ff3629.
The test for (a) was inspired by a reproducer supplied by Jeff Layton.
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-malloc-Test-various-special-cases-related-to-allocat.patch
Type: text/x-patch
Size: 13671 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151228/1c4eeaa8/attachment.bin>
More information about the Libc-alpha
mailing list