[FFmpeg-cvslog] matroska: Fix use after free
Dale Curtis
git at videolan.org
Thu Mar 12 00:52:47 CET 2015
ffmpeg | branch: release/0.7 | Dale Curtis <dalecurtis at chromium.org> | Thu Jan 10 11:05:29 2013 -0800| [c3ece52decafc4923aebe7fd74b274e9ebb1962e] | committer: Michael Niedermayer
matroska: Fix use after free
Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
(cherry picked from commit ae3d41636942cbc0236bad21ad06c65f4eb0f096)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c3ece52decafc4923aebe7fd74b274e9ebb1962e
---
libavformat/matroskadec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 2fe1db5..ac91f67 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1676,6 +1676,7 @@ static int matroska_deliver_packet(MatroskaDemuxContext *matroska,
*/
static void matroska_clear_queue(MatroskaDemuxContext *matroska)
{
+ matroska->prev_pkt = NULL;
if (matroska->packets) {
int n;
for (n = 0; n < matroska->num_packets; n++) {
More information about the ffmpeg-cvslog
mailing list