projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb93782
)
bink: Bound check the quantization matrix.
author
Luca Barbato
<lu_zero@gentoo.org>
Sun, 4 Aug 2013 16:48:20 +0000
(18:48 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Mon, 5 Aug 2013 14:24:13 +0000
(16:24 +0200)
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/bink.c
patch
|
blob
|
history
diff --git
a/libavcodec/bink.c
b/libavcodec/bink.c
index
7ec0cab
..
98a54c6
100644
(file)
--- a/
libavcodec/bink.c
+++ b/
libavcodec/bink.c
@@
-681,6
+681,9
@@
static int read_dct_coeffs(GetBitContext *gb, int32_t block[64], const uint8_t *
quant_idx = q;
}
+ if (quant_idx >= 16)
+ return AVERROR_INVALIDDATA;
+
quant = quant_matrices[quant_idx];
block[0] = (block[0] * quant[0]) >> 11;