[MPlayer-dev-eng] possible bug in demux_mov.c

Michael Niedermayer michaelni at gmx.at
Mon Apr 21 22:03:00 CEST 2003


Hi

On Monday 21 April 2003 21:45, Daniel Egger wrote:
> Am Mon, 2003-04-21 um 21.49 schrieb Arpi:
> > also note, that it doesn't even happen on VM systems, as there are 2GB
> > VM, whiel you have actually a lot less plhisical memory, so your app
> > will be killed by kernel's OOM before your app gets any error of malloc()
> > (you can even malloc() 2GB, it will be allocated really when you start
> > use (address) it, malloc won't fail even if you have only 8MB ram)
>
> That's plain wrong. Maybe you're confusing it with mmap?
hmm, i never tried to alloc 2gb ;)
but the memory returned by malloc seems to just reference the same 4k page of 
zeros until u write to it, at least some benchmark i did behaved very 
different if the memory was memset() after malloc() IIRC

-- 
Michael
screen[y][x] ^= cursor[cy][cx];			(violates patent #4,197,590)
median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]);	(violates patent #5,905,535)
buf[i]= qp - buf[i-1];				(violates patent #?)
for more examples, see http://mplayerhq.hu/~michael/patent.html
stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en



More information about the MPlayer-dev-eng mailing list