| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
|
|
|
|
|
|
|
| |
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: Austin Foxley <austinf@cetoncorp.com>
|
|
|
|
| |
Step 7: libc/stdlib and malloc
|
|
|
|
| |
NPTL sh4 port build and work fine. All committed to allow Khem Ray working on a working branch to integrate the ARM nptl port. MIPS nptl port not tested but should still building and working fine. There are some other part non yet merged with trunk (misc/internals and some headers file that need some more work). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
|
|
|
| |
<carmelo.amoroso@st.com>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
which was reversed. Provide more consistancy between implementations.
Handle it when people do stupid things like malloc(-1);
|
| |
|
|
|
|
| |
-Erik
|
| |
|
|
|
|
|
| |
where we extended the existing allocation, and got back more than we
asked for from the heap.
|
| |
|
| |
|
| |
|
|
|
|
| |
size calculations.
|
| |
|
| |
|
|
|
|
| |
Calculate amount freed when shrinking correctly.
|
|
|
|
| |
MALLOC_SET_SIZE now takes the user-address rather than the base-address.
|
|
|
|
|
| |
Fix bug when growing an allocation.
Use new malloc header macros.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
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!
|