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

D Richard Felker III dalias at aerifal.cx
Mon Apr 21 21:25:17 CEST 2003


On Mon, Apr 21, 2003 at 09:16:31PM +0200, Arpi wrote:
> Hi,
> 
> > Hi,
> > 
> > In demux_mov.c at line 498 there is a unchecked malloc.
> > This could probably leed to a segfault.
> 
> there are thousands of unchecked mallocs in mplayer source
> we don't expect to fail allocating few kBs of memory...

I agree, checking malloc return is nonsense. If there's not enough
mem, crashing is just as good as printing a fatal error followed by
'clean' exit...

Rich



More information about the MPlayer-dev-eng mailing list