Menu ▾ ▴

Commit [r2658]  Maximize  Restore  History

Added that patch:

Hallo,
there is a severe allocation bug in pipelist.c

The line
if ((pl->segment_count % 32) == 0)
pl->segments = (PipeSegment **) realloc (pl->segments,
sizeof (pl->segments) + 32 * sizeof (PipeSegment *));
}

assumes pl->segments to return the size of malloced memory pointed to by
pl->segments;

myght be
if ((pl->segment_count % 32) == 0)
pl->segments = (PipeSegment **) realloc (pl->segments,
(pl->segment_count + 32) * sizeof (PipeSegment *));
}

waldviertler 2005-02-01

changed /trunk/mjpeg_play/lavtools/pipelist.c
/trunk/mjpeg_play/lavtools/pipelist.c Diff Switch to side-by-side view
Loading...