summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c
AgeCommit message (Expand)Author
2018-03-05Use _MAX_PAGE_SHIFT, rather than #ifdef mips64Theo de Raadt
2018-02-07use consistent style for for loop in unmap(), no functional changeOtto Moerbeek
2018-01-30keep in sync with ld.so malloc.cOtto Moerbeek
2018-01-28- An error in the multithreaded case could print the wrong function nameOtto Moerbeek
2018-01-26- do not junk pages returned by free_bytes(), all freed chunks are alreadyOtto Moerbeek
2018-01-18Zap the rotor, it was a wrong idea. Cluebat applied by kshe whoOtto Moerbeek
2018-01-18Move to ffs(3) for bitmask scanning. I played with this earlier,Otto Moerbeek
2018-01-08optimization and some cleanup; mostly from kshe (except the unmap() part)Otto Moerbeek
2018-01-01Only init chunk_info once, plus some moving of code to group related functions.Otto Moerbeek
2017-12-27step one in avoiding unneccesary init of chunk_info;Otto Moerbeek
2017-11-02's' should include 'f'; from Jacqueline JolicoeurOtto Moerbeek
2017-10-19Restore a return that was inadvertently removed from freezero() in r1.234,Joel Sing
2017-10-05do not return f() where f is a void function; loop var type fixOtto Moerbeek
2017-10-05Use dprintf instead of snprintf/writeOtto Moerbeek
2017-09-23Make delayed free non-optional and make F do an extensive double free check.Otto Moerbeek
2017-09-12mapalign returns MAP_FAILED for failuer; from George KoehlerOtto Moerbeek
2017-09-11check double free before canary for chunks; ok millert@Otto Moerbeek
2017-08-20two MALLOC_STATS only tweaks; one from David CARLIER, the other found by clangOtto Moerbeek
2017-07-10one more instance of the previous commit; also initialize ->offset to aOtto Moerbeek
2017-07-07Only access offset if canaries are enabled *and* size > 0, otherwise offsetOtto Moerbeek
2017-06-19port the RBT code to userland by making it part of libc.David Gwynne
2017-05-13- fix bug wrt posix_memalign(3) of blocks between half a page and a pageOtto Moerbeek
2017-04-22For small allocations (chunk) freezero only validates the givenOtto Moerbeek
2017-04-18don't forget to fill in canary bytes for posix_memalign(3); reported byOtto Moerbeek
2017-04-17whitespace fixesOtto Moerbeek
2017-04-13allow clearing less than allocated and document freezero(3) betterOtto Moerbeek
2017-04-10Introducing freezero(3) a version of free that guarantees the processOtto Moerbeek
2017-04-06first print size in meta-data then supplied arg size when an inconsistency isOtto Moerbeek
2017-03-28small cleanup & optimization; ok deraadt@ millert@Otto Moerbeek
2017-03-24add a helper function to print all pools #ifdef MALLOC_STATSOtto Moerbeek
2017-03-24move recallocarray to malloc.c andOtto Moerbeek
2017-02-15Add a NULL test to wrterror() to avoid a NULL deref when called from aJonathan Gray
2017-02-02fix a comment and rm some dead code as a result of the previous diffOtto Moerbeek
2017-02-01Let realloc handle and produce moved pointers for allocations betweenOtto Moerbeek
2017-01-211. When shrinking a chunk allocation, compare the size of the currentOtto Moerbeek
2016-11-04MALLOC_STATS tweaks, by default not compiled inOtto Moerbeek
2016-11-03small tweak to also check canaries if F is in effectOtto Moerbeek
2016-10-31remove some old option letters and also make P non-settable. It hasOtto Moerbeek
2016-10-28Pages in the malloc cache are either reused quickly or unmappedOtto Moerbeek
2016-10-22- fix MALLOC_STATS compileOtto Moerbeek
2016-10-21fix some void * arithmetic by castingOtto Moerbeek
2016-10-21and recommit with fixed GCOtto Moerbeek
2016-10-20backout for now; flag combination GC is not okOtto Moerbeek
2016-10-20Also place canaries in > page sized objects (if C is in effect); ok tb@Otto Moerbeek
2016-10-15Wrap _malloc_init() so internal calls go directlyPhilip Guenther
2016-10-140xd0 -> 0xdb; ok deraadt@ millert@ tedu@Otto Moerbeek
2016-10-12optimize canary code a bit by storing offset of sizes table instead ofOtto Moerbeek
2016-10-07stray tabOtto Moerbeek
2016-10-07Beter implementation of chunk canaries: store size in chunk meta dataOtto Moerbeek
2016-09-21Delete casts to off_t and size_t that are implied by assignmentsPhilip Guenther