Age | Commit message (Collapse) | Author | |
---|---|---|---|
2004-04-12 | Clean up malloc_active state when aborting. | Thierry Deval | |
This allows for safe abort handling, without tripping into false recursivity problems. Ok tedu@, deraadt@ | |||
2004-02-19 | Sanity fix. | Thierry Deval | |
reviewed by deraadt@, tedu@ | |||
2003-11-19 | only whine about recursion once, so we don't get into problems with loops. | Ted Unangst | |
2003-10-16 | by popular demand, malloc guard pages. insert an unreadable/unwriteable | Ted Unangst | |
page after each page size allocation to detect overrun. this is somewhat electric fence like, while attempting to be mostly usable in production. also, use tdeval's chunk randomization code. enabled with the G option. ok deraadt and co. | |||
2003-10-15 | abort on errors by default. workaround so running out of memory isn't | Ted Unangst | |
actually an error, A still applies full effect. suggested by phk. ok deraadt@ tdeval@ | |||
2003-10-02 | two minor fixes. set errno on recursive calls. ENOMEM suggested by marc@. | Ted Unangst | |
lock before setting malloc_func, not after. ok cloder@ deraadt@ | |||
2003-09-30 | full stop. reverse course. remove all periods, so as to be aligned | Ted Unangst | |
with error messages elsewhere. requested ok deraadt@ henning@ | |||
2003-09-27 | remove register. end all sentences with periods. | Ted Unangst | |
ok deraadt@ henning@ millert@ | |||
2003-08-04 | ansify function arguments | Jean-Francois Brousseau | |
ok tdeval@ | |||
2003-07-19 | - just warn in case of mmap/brk failure | Thierry Deval | |
- extend_pgdir and malloc_make_chunks return int, not void* ok tedu@ | |||
2003-07-13 | Fix two cases where malloc() returns NULL but does not set errno to ENOMEM. | Otto Moerbeek | |
ok tdeval@ henning@ millert@ | |||
2003-05-14 | Unbreak 64-bit archs... | Thierry Deval | |
2003-05-14 | Pointer cleaning. ok ian@, tedu@, krw@ | Thierry Deval | |
2003-01-14 | Add sanity check to prevent int oflow for very large allocations. | Todd C. Miller | |
Also fix a signed vs. unsigned issue while I am at it. Found by Jim Geovedi. OK deraadt@ | |||
2002-11-27 | Honour malloc_junk ('J') with realloc(3), and fix page_dir shrink update. | Thierry Deval | |
2002-11-25 | Warn if atexit(3) fails. Change some tabs to spaces. Use | Chad Loder | |
STDERR_FILENO instead of 2. OK millert@ | |||
2002-11-05 | thread safe libc -- 2nd try. OK miod@, millert@ | Marco S Hyman | |
Thanks to miod@ for m68k and vax fixes | |||
2002-11-03 | back out previous patch.. there are still some vax/m68k issues | Marco S Hyman | |
2002-11-03 | libc changes for thread safety. Tested on: | Marco S Hyman | |
alpha (millert@), i386 (marc@), m68k (millert@ and miod@), powerpc (drahn@ and dhartmei@), sparc (millert@ and marc@), sparc64 (marc@), and vax (millert@ and miod@). Thanks to millert@, miod@, and mickey@ for fixes along the way. | |||
2002-05-27 | unsigned vs unsigned int | Theo de Raadt | |
2002-02-16 | Part one of userland __P removal. Done with a simple regexp with some minor ↵ | Todd C. Miller | |
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | |||
2002-01-23 | THREAD_UNLOCK() on error before returning; millert@ ok. | Federico G. Schwindt | |
2001-12-05 | correct an alignment mis-conception for malloc(0) returned regions. | Thierry Deval | |
OK deraadt@ | |||
2001-11-01 | remove dangling spaces and tabs | Michael Shalayeff | |
2001-10-30 | mprotect allocations sized at 0 bytes. This will cause a fault for access | Thierry Deval | |
to such, permitting them to be discovered, instead of exploited as the ssh crc insertion detector was. Idea by theo, written by tdeval. | |||
2001-05-11 | -1 -> MAP_FAILED | Artur Grabowski | |
2001-05-10 | Use madvise(MADV_FREE) to allow the 'h' option. | Artur Grabowski | |
(the code was already there, just not enabled). | |||
2000-04-10 | missing THREAD_UNLOCK; netch@segfault.kiev.ua | Theo de Raadt | |
2000-03-01 | typo fix; halogen@nol.net | Theo de Raadt | |
1999-11-10 | calloc() needs to be separate from malloc in case a user wants to have | Todd C. Miller | |
their own malloc() implementation. | |||
1999-11-09 | Move calloc() into malloc.c and only zero out the area if malloc() | Todd C. Miller | |
didn't do so for us. By default, malloc() zeros out the space it allocates but the programmer cannot rely on this as it is implementation- specific (and configurable via /etc/malloc.conf) | |||
1999-09-16 | use writev() where possible | Theo de Raadt | |
1999-02-03 | wrong ret type for write define (millert@) | David Leonard | |
1999-02-01 | malloc can't use write() if it fails very early, so use the unwrapped ↵ | David Leonard | |
syscall _thread_sys_write() if we are threaded | |||
1998-11-20 | Add thread-safety to libc, so that libc_r will build (on i386 at least). | David Leonard | |
All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO | |||
1998-08-06 | Don't enumerate every arch in the #if since all OpenBSD platforms use the ↵ | Todd C. Miller | |
same values for malloc_pageshift and malloc_minsize except for sparc | |||
1998-06-28 | Oh fun, mucking about with files used on all archs. | Dale S. Rahn | |
This is one of many places in the source that have #if defined("list all architectures") Is there some possible way to eliminate, reduce these or at least have a file that describes all occurrances so that when a new port is done this could be addressed. like the recent hppa port, does it need to take a look at this???? | |||
1998-01-02 | make mmap() return void *, add MAP_FAILED | Theo de Raadt | |
1997-08-23 | Change realloc(foo,0) to behave like malloc(0). Both now return a pointer | Per Fogelstrom | |
to an object of size zero. This will allow testing on reallocs return value to determine if the operation was successful or not. | |||
1997-08-22 | malloc_init() should try to not modify errno | Theo de Raadt | |
1997-07-02 | Use MALLOC_EXTRA_SANITY consistently (EXTRA_SANITY was used in many places) | Todd C. Miller | |
sizeof *pt -> sizeof *px (point to same type of struct but looked wrong). | |||
1997-05-31 | Make it possible to not output warnings (errors causing aborts are always | Thorsten Lockert | |
output). | |||
1997-05-31 | Add x/X option to behave like X11 xmalloc; from FreeBSD | Thorsten Lockert | |
Reduce diffs wrt. FreeBSD some | |||
1997-04-30 | Be more careful with mixing types | Thorsten Lockert | |
1997-04-05 | Check for overflow; from FreeBSD | Thorsten Lockert | |
1997-02-11 | is we were set[ug]id an unitialized ptr bit us | Niklas Hallqvist | |
1997-02-09 | Make this 64-bit safe again | Thorsten Lockert | |
1997-01-05 | Integrate latest malloc(3) from FreeBSD | Thorsten Lockert | |
1996-11-24 | more 64bit fixes | Niklas Hallqvist | |
1996-11-23 | 64 bit clean | Niklas Hallqvist | |