Re: [Mjpeg-users] allocation bug in pipelist.c

2005-02-01 Thread Bernhard Praschinger
Hallo > 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; > > m

[Mjpeg-users] allocation bug in pipelist.c

2005-01-28 Thread fulvio ciriaco
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 point