[MPlayer-cvslog] r32757 - trunk/libmpdemux/muxer.c
reimar
subversion at mplayerhq.hu
Wed Jan 5 16:45:29 CET 2011
Author: reimar
Date: Wed Jan 5 16:45:28 2011
New Revision: 32757
Log:
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).
Modified:
trunk/libmpdemux/muxer.c
Modified: trunk/libmpdemux/muxer.c
==============================================================================
--- trunk/libmpdemux/muxer.c Wed Jan 5 16:13:47 2011 (r32756)
+++ trunk/libmpdemux/muxer.c Wed Jan 5 16:45:28 2011 (r32757)
@@ -147,6 +147,7 @@ void muxer_write_chunk(muxer_stream_t *s
}
free(s->muxer->muxbuf);
+ s->muxer->muxbuf = NULL;
s->muxer->muxbuf_num = 0;
}
}
More information about the MPlayer-cvslog
mailing list