# HG changeset patch # User reimar # Date 1294242328 0 # Node ID fa6a2a65aad3d3194207e5ddb7eb7e8b23825e05 # Parent 956db4f28a62de5103696db7d3924f10b8036624 100l, set s->muxer->muxbuf to NULL after free, it is used as argument to realloc so we may _never_ allow it to be an invalid value. Original patch by Sang-Uok Kum. Signed-off-by: Tobias Diedrich (ranma google com). diff -r 956db4f28a62 -r fa6a2a65aad3 libmpdemux/muxer.c --- a/libmpdemux/muxer.c Wed Jan 05 15:13:47 2011 +0000 +++ b/libmpdemux/muxer.c Wed Jan 05 15:45:28 2011 +0000 @@ -147,6 +147,7 @@ } free(s->muxer->muxbuf); + s->muxer->muxbuf = NULL; s->muxer->muxbuf_num = 0; } }