Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Re: Memset corrupts memory?
From: Paul Suade (paul.suade_at_laposte.net)
Date: 2002-07-17


Yeah it is not a real OS with an expandable stack at demand :). We get very
bad habit when programming in Windows or Linux ;)

----- Original Message -----
From: "Björn Stenberg" <bjorn_at_haxx.se>
To: <rockbox_at_cool.haxx.se>
Sent: Wednesday, July 17, 2002 12:45 PM
Subject: Re: Re: Memset corrupts memory?

> Alex Gitelman wrote:
> > Apparently problem is not memset but in allocation of local array.
> > If you replace out_buf[10000] with out_buf = malloc(10000) -> problem
> > seems to be gone.
>
> That's because when you don't use malloc, the memory come out of the
stack. And the main thread only has 8K of stack.
>
> --
> Björn



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa