summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c
AgeCommit message (Expand)Author
2008-08-22Smarter implementation of calloc(3), which uses the fact that mmap(2)Otto Moerbeek
2008-08-07small cleanup of error/warning stringsOtto Moerbeek
2008-07-28Almost complete rewrite of malloc, to have a more efficient dataOtto Moerbeek
2008-06-13remove _MALLOC_LOCK_INIT; major bump; ok deraadt@Otto Moerbeek
2008-05-19remove recalloc(3); it is buggy and impossible to repair without bigOtto Moerbeek
2008-04-13Use arc4random_buf() when requesting more than a single word of outputDamien Miller
2008-02-20use pgfree pool like other code does to reserve free list slots.Otto Moerbeek
2007-09-03add recaloc(3)Todd C. Miller
2007-02-12get cheaper random bytes, less waste and no getpid() calls, which areOtto Moerbeek
2006-12-19a failed mmap returns MAP_FAILED, not NULL. found while exercising paxOtto Moerbeek
2006-10-24respond to ben hawkes's ruxcon presentation.Ted Unangst
2006-05-14Fix the second malloc_ulimit regression: maintaining the free listOtto Moerbeek
2006-04-24Do not leave an hole in the directory list if allocation of theOtto Moerbeek
2006-04-18delint; original from deraadt@ with fixes from tdeval@ and me;Otto Moerbeek
2006-02-14quick path for free(0)Marc Espie
2005-10-10Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.Marc Espie
2005-10-05further knf and cleaning; ok tdevalTheo de Raadt
2005-10-05first KNF (no binary diffs)Theo de Raadt
2005-08-08zap remaining rcsid.Marc Espie
2005-07-07Fix the unmapping of freed pages, leaving just 64k worth of cache pages.Thierry Deval
2005-06-07adding pointer protection to 'G' was too heavyweight. Since malloc guardTed Unangst
2005-05-24handle sizeof(void *) allocations specially when using malloc guard.Ted Unangst
2005-03-31MMAP(2) malloc, here we go again.Thierry Deval
2004-08-11Back out to brk(2) version.Thierry Deval
2004-08-05- Remove the userland data limit check. It's mmap(2)'s job.Thierry Deval
2004-08-04Missing check for NULL.Thierry Deval
2004-08-01After a long gestation period, here comes our custom version of malloc(3)Thierry Deval
2004-04-12Clean up malloc_active state when aborting.Thierry Deval
2004-02-19Sanity fix.Thierry Deval
2003-11-19only whine about recursion once, so we don't get into problems with loops.Ted Unangst
2003-10-16by popular demand, malloc guard pages. insert an unreadable/unwriteableTed Unangst
2003-10-15abort on errors by default. workaround so running out of memory isn'tTed Unangst
2003-10-02two minor fixes. set errno on recursive calls. ENOMEM suggested by marc@.Ted Unangst
2003-09-30full stop. reverse course. remove all periods, so as to be alignedTed Unangst
2003-09-27remove register. end all sentences with periods.Ted Unangst
2003-08-04ansify function argumentsJean-Francois Brousseau
2003-07-19- just warn in case of mmap/brk failureThierry Deval
2003-07-13Fix two cases where malloc() returns NULL but does not set errno to ENOMEM.Otto Moerbeek
2003-05-14Unbreak 64-bit archs...Thierry Deval
2003-05-14Pointer cleaning. ok ian@, tedu@, krw@Thierry Deval
2003-01-14Add sanity check to prevent int oflow for very large allocations.Todd C. Miller
2002-11-27Honour malloc_junk ('J') with realloc(3), and fix page_dir shrink update.Thierry Deval
2002-11-25Warn if atexit(3) fails. Change some tabs to spaces. UseChad Loder
2002-11-05thread safe libc -- 2nd try. OK miod@, millert@Marco S Hyman
2002-11-03back out previous patch.. there are still some vax/m68k issuesMarco S Hyman
2002-11-03libc changes for thread safety. Tested on:Marco S Hyman
2002-05-27unsigned vs unsigned intTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2002-01-23THREAD_UNLOCK() on error before returning; millert@ ok.Federico G. Schwindt
2001-12-05correct an alignment mis-conception for malloc(0) returned regions.Thierry Deval