Commit 723229c1 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Janne Grunau

matroskadec: fix out of bounds write

Signed-off-by: 's avatarJanne Grunau <janne-libav@jannau.net>
parent a62c0f94
...@@ -1783,7 +1783,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, ...@@ -1783,7 +1783,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
lace_size[n] = lace_size[n - 1] + snum; lace_size[n] = lace_size[n - 1] + snum;
total += lace_size[n]; total += lace_size[n];
} }
lace_size[n] = size - total; lace_size[laces - 1] = size - total;
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment