Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-10-15 | malloc: handle size overflows in realloc() | Mike Frysinger | |
The malloc() code checks the incoming size to make sure the header adjustment doesn't cause overflow in the size storage. Add the same check to realloc() to catch stupid stuff like realloc(..., -1). Reported-by: James Coleman <james.coleman@ubicom.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> | |||
2009-09-18 | trim Experimentally off and uncommented hidden | Bernhard Reutner-Fischer | |
sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | |||
2008-10-28 | Finally fix the MALLOC=y and MALLOC_SIMPLE=y breakage from svn 23660. (I ↵ | Rob Landley | |
found it, this is Bernhard's patch to fix it. Tested and it Works For Me (tm)). | |||
2008-10-16 | This should fix malloc with debug and without threads. (Chase N Douglas) | Bernhard Reutner-Fischer | |
This should have been in r23660. Untested. | |||
2008-10-11 | Fix bug 4994 hangs on read(). I have tested the patch extensibly on ARM/LT.old. | Khem Raj | |
Thank you Chase Douglas for reporting it and for the patch. | |||
2008-05-19 | Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL block | Denis Vlasenko | |
in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's. | |||
2007-04-24 | fix from Bernd Schmidt for realloc shrinkage bug | Mike Frysinger | |
2007-04-13 | fix up malloc debug building | Mike Frysinger | |
2006-02-22 | check for a 0 size first, then check for a NULL pointer | Mike Frysinger | |
2006-01-14 | hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵ | Peter S. Mazinger | |
missing headers, other jump relocs removed | |||
2005-12-01 | Hide mostly used functions | Peter S. Mazinger | |
2003-10-16 | Code formatting cleanup. | Miles Bader | |
2003-09-06 | Fix errno values. Fix MALLOC_GLIBC_COMPAT handling in malloc/malloc.c, | Eric Andersen | |
which was reversed. Provide more consistancy between implementations. Handle it when people do stupid things like malloc(-1); | |||
2002-11-21 | Improve malloc debugging support. | Miles Bader | |
2002-10-17 | Fix malloc so it compiles and works when using pthreads | Eric Andersen | |
-Erik | |||
2002-10-15 | Use __heap_[un]lock instead of __malloc_[un]lock. | Miles Bader | |
2002-09-09 | (realloc): Record the correct size in the malloc header in the case | Miles Bader | |
where we extended the existing allocation, and got back more than we asked for from the heap. | |||
2002-08-19 | (realloc): Follow new arg conventions of MALLOC_SET_SIZE. | Miles Bader | |
2002-08-14 | Handle zero NEW_SIZE case. | Miles Bader | |
2002-08-01 | Use MALLOC_REALLOC_MIN_FREE_SIZE. | Miles Bader | |
2002-07-31 | In the allocate-and-copy case, don't include the malloc header in our | Miles Bader | |
size calculations. | |||
2002-07-31 | Update debugging printfs. | Miles Bader | |
2002-07-31 | Account for MALLOC_HEADER_SIZE when calculating new size. | Miles Bader | |
2002-07-30 | Make sure NEW_SIZE is a multiple of HEAP_GRANULARITY. | Miles Bader | |
Calculate amount freed when shrinking correctly. | |||
2002-07-30 | Update the size of grown/shrunk allocations. | Miles Bader | |
MALLOC_SET_SIZE now takes the user-address rather than the base-address. | |||
2002-07-30 | Implement shrinking. | Miles Bader | |
Fix bug when growing an allocation. Use new malloc header macros. | |||
2002-07-25 | Redo the locking, so that it may actually work. Now locking is done at | Miles Bader | |
the malloc/free level, not within the heap abstraction, and there's a separate lock to control sbrk access. Also, get rid of the separate `unmap_free_area' function in free.c, and just put the code in the `free' function directly, which saves a bunch of space (even compared to using an inline function) for some reason. | |||
2002-07-24 | Misc small cleanups. | Miles Bader | |
2002-07-23 | * Automatically try to unmap heap free-areas when they get very big. | Miles Bader | |
* Instead of using mmap/munmap directly for large allocations, just use the heap for everything (this is reasonable now that heap memory can be unmapped). * Use sbrk instead of mmap/munmap on systems with an MMU. | |||
2002-07-19 | Doc fix. | Miles Bader | |
2002-07-18 | Miles Bader implemented a new mmap based malloc which is much | Eric Andersen | |
smarter than the old "malloc-simple", and actually works, unlike the old "malloc". So kill the old "malloc-simple" and the old "malloc" and replace them with Miles' new malloc implementation. Update Config files to match. Thanks Miles! |