aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje2011-10-15 00:03:55 +0200
committerJanne Grunau2011-10-15 00:13:21 +0200
commit723229c11f1400e6a09c8a1c9c27193f376eb1d1 (patch)
tree36e6bbdb4b34263042c88bb7b02c6c1721503470
parenta62c0f94ee5c96e98b1f91d9f1ab9f568037bb00 (diff)
matroskadec: fix out of bounds write
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
-rw-r--r--libavformat/matroskadec.c2
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;
}
}