OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a62c0f9
)
matroskadec: fix out of bounds write
author
Ronald S. Bultje
<rsbultje@gmail.com>
Fri, 14 Oct 2011 22:03:55 +0000
(
00:03
+0200)
committer
Janne Grunau
<janne-libav@jannau.net>
Fri, 14 Oct 2011 22:13:21 +0000
(
00:13
+0200)
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
libavformat/matroskadec.c
patch
|
blob
|
history
diff --git
a/libavformat/matroskadec.c
b/libavformat/matroskadec.c
index
89df095
..
237e929
100644
(file)
--- 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;
}
}