[FFmpeg-cvslog] matroskadec: fix out of bounds write
Ronald S. Bultje
git at videolan.org
Sun Oct 16 04:20:37 CEST 2011
ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Sat Oct 15 00:03:55 2011 +0200| [723229c11f1400e6a09c8a1c9c27193f376eb1d1] | committer: Janne Grunau
matroskadec: fix out of bounds write
Signed-off-by: Janne Grunau <janne-libav at jannau.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=723229c11f1400e6a09c8a1c9c27193f376eb1d1
---
libavformat/matroskadec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 89df095..237e929 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1783,7 +1783,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
lace_size[n] = lace_size[n - 1] + snum;
total += lace_size[n];
}
- lace_size[n] = size - total;
+ lace_size[laces - 1] = size - total;
break;
}
}
More information about the ffmpeg-cvslog
mailing list