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?

Re: Re: Memset corrupts memory?

From: Björn Stenberg <bjorn_at_haxx.se>
Date: Wed, 17 Jul 2002 12:45:31 +0200

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
Received on 2002-07-17

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy