36 Commits (16bf466532d7328e971012b0731ad493b017ad29)

Author SHA1 Message Date
Rich Felker 064898cfe2 remove useless check of bin match in malloc 11 years ago
Rich Felker 7a81fe3710 fix init race that could lead to deadlock in malloc init code 11 years ago
Rich Felker 56fbaa3bbe make all objects used with atomic operations volatile 11 years ago
Rich Felker 8d998a7b3b add malloc_usable_size function and non-stub malloc.h 12 years ago
Rich Felker 5446303328 avoid malloc failure for small requests when brk can't be extended 12 years ago
Szabolcs Nagy 571744447c include cleanups: remove unused headers and add feature test macros 13 years ago
Rich Felker 8acbe4f818 slightly optimize __brk for size 13 years ago
Rich Felker a947d317a2 fix failure of malloc to set errno on heap (brk) exhaustion 13 years ago
Rich Felker e803829e6b fix potential deadlock bug in libc-internal locking logic 13 years ago
Rich Felker 4a30ba5ca4 remove redundant check in memalign 13 years ago
Rich Felker 70a92bc968 fix heap corruption bug in memalign 13 years ago
Rich Felker 8389520ed5 harden realloc/free to detect simple overflows 13 years ago
Rich Felker 6d861ac874 move core memalign code from aligned_alloc to __memalign 13 years ago
Rich Felker 651416182d move alignment check from aligned_alloc to posix_memalign 13 years ago
Rich Felker b8ccf8e46b page-align initial brk value used by malloc in shared libc 14 years ago
Rich Felker 2ad9cf52eb fix invalid read in aligned_alloc 14 years ago
Rich Felker afd209deb7 workaround gcc got-register-reload performance problems in malloc 14 years ago
Rich Felker 9bff7c133e implement "low hanging fruit" from C11 14 years ago
Rich Felker 4750cf4202 ditch the priority inheritance locks; use malloc's version of lock 14 years ago
Rich Felker e5d78fe8df fix issue with excessive mremap syscalls on realloc 15 years ago
Rich Felker 1c8bead345 use new a_crash() asm to optimize double-free handler. 15 years ago
Rich Felker ce7c6341d3 simplify and improve double-free check 15 years ago
Rich Felker f9ed11f3e1 posix_memalign should fail if size is not a multiple of sizeof(void *) 15 years ago
Rich Felker 5d0965cb56 eliminate OOB array hacks in malloc 15 years ago
Rich Felker 2afebbbcd1 malloc: cast size down to int in bin_index functions 15 years ago
Rich Felker 71a80c5767 use volatile pointers for intentional-crash code. 15 years ago
Rich Felker b052f13cd1 namespace fixes for sys/mman.h 15 years ago
Rich Felker b761bd19aa fix rare but nasty under-allocation bug in malloc with large requests 15 years ago
Rich Felker bf8785825a avoid over-allocation of brk on first malloc 15 years ago
Rich Felker 620a134638 rename __simple_malloc.c to lite_malloc.c - yes this affects behavior! 15 years ago
Rich Felker 0958200166 very cheap double-free checks in malloc 15 years ago
Rich Felker aa398f56fa global cleanup to use the new syscall interface 15 years ago
Rich Felker 26031da0f8 make malloc(0) return unique pointers rather than NULL 15 years ago
Rich Felker 598a0147cd fix simple_malloc malloc(0) behavior not to return non-unique pointers 15 years ago
Rich Felker a23baf586a fix simple_malloc size restrictions 15 years ago
Rich Felker 0b44a0315b initial check-in, version 0.5.0 15 years ago