changeset 32670:fa6a2a65aad3

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).
author reimar
date Wed, 05 Jan 2011 15:45:28 +0000
parents 956db4f28a62
children 08098f84e7b7
files libmpdemux/muxer.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
       }
     }