diff options
author | Ronald S. Bultje | 2011-10-15 00:03:55 +0200 |
---|---|---|
committer | Janne Grunau | 2011-10-15 00:13:21 +0200 |
commit | 723229c11f1400e6a09c8a1c9c27193f376eb1d1 (patch) | |
tree | 36e6bbdb4b34263042c88bb7b02c6c1721503470 | |
parent | a62c0f94ee5c96e98b1f91d9f1ab9f568037bb00 (diff) |
matroskadec: fix out of bounds write
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
-rw-r--r-- | libavformat/matroskadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 89df095cd8..237e9295e0 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; } } |