[MPlayer-dev-eng] segfault on Alpha in libmpdemux/demux_mov.c

Andrew A. Gill superluser at frontiernet.net
Tue Mar 2 17:54:32 CET 2004


I'm getting a segfault on a DEC Alpha with the Sorenson codec.

I've traced the issue to the following line:

	trak->chunks=realloc(trak->chunks,sizeof(mov_chunk_t)*len);

(that's the one inside case MOV_FOURCC('s','t','c','o'):, it
may also segfault in case MOV_FOURCC('c','o','6','4'):)

I must admit that when I get to a line with pointers and mallocs
and sizeof()s and segfaults, my mind goes all squishy.  So maybe
you can tell me what the problem with this is.  Or better yet,
fix it.

-- 
|Andrew A. Gill                       |I posted to Silent-Tristero and|
|<superluser at frontiernet.net>         |all I got was this stupid sig! |
|alt.tv.simpsons CBG-FAQ author       |                               |
|                          (Report all obscene mail to Le Maitre Pots)|
|Yet: <http://www.needsfoodbadly.com>                 Temporary sig: --

pointers and mallocs and sizeof()s, segfault!




More information about the MPlayer-dev-eng mailing list