[MPlayer-dev-eng] [RFC] libnut demuxer API
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Sep 8 11:32:14 CEST 2005
Hi,
On Wed, Sep 07, 2005 at 11:44:39PM +0200, Aurelien Jacobs wrote:
> On Wed, 7 Sep 2005 08:45:59 +0300
> Oded Shimon <ods15 at ods15.dyndns.org> wrote:
> > ahem, yes, malloc :)
> > even if you run out of ram, in linux, malloc STILL doesn't fail :P
>
> That's plain wrong !!
[...]
> aurel at homer:~/x$ gcc -Wall -o x x.c
> aurel at homer:~/x$ ./x 100000000
> 0x2aaaaae02010
> aurel at homer:~/x$ ./x 1000000000
> (nil)
You have been testing whether an application can malloc any amout of
RAM, which of course is not the case. Oded was talking about whether
malloc can/will fail when you have no more free RAM, which is a
different thing!
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list