Re: Malloc & sbrk



heyber.l@xxxxxxxxx wrote:

could someone explain me how malloc() (particularly doug lea's)
deals with programs who calls sbrk on their own.

What happens to the "Wilderness" chunk?

You could look at my nmalloc for DJGPP, which handles just that,
and the testsuite exercizes that feature. See:

<http://cbfalconer.home.att.net/download/nmalloc.zip>

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>


.



Relevant Pages

  • Re: Malloc & sbrk
    ... could someone explain me how malloc(particularly doug lea's) deals ... with programs who calls sbrk on their own. ... What happens to the "Wilderness" chunk? ...
    (comp.lang.c)
  • Malloc & sbrk
    ... could someone explain me how malloc(particularly doug lea's) deals ... with programs who calls sbrk on their own. ... What happens to the "Wilderness" chunk? ...
    (comp.unix.programmer)
  • Malloc & sbrk
    ... could someone explain me how malloc(particularly doug lea's) deals ... with programs who calls sbrk on their own. ... What happens to the "Wilderness" chunk? ...
    (comp.lang.c)
  • Malloc & sbrk
    ... could someone explain me how malloc(particularly doug lea's) deals ... with programs who calls sbrk on their own. ... What happens to the "Wilderness" chunk? ...
    (comp.programming)
  • [Full-Disclosure] Exploiting the Wilderness
    ... Exploiting The Wilderness ... The wilderness is the top-most chunk in allocated memory. ... to any normal malloc chunk - it has a chunk header followed by a variably ... Looking at our sample code above we can see that a typical buffer overflow ...
    (Full-Disclosure)