diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-10 08:04:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-10 08:05:18 +0100 |
commit | f7b57add8ee0cb234617ca1c86e2d334b50fdc38 (patch) | |
tree | 2f660f6fab1ca882bc3a8e4dd801dd40f5871725 /libavcodec/cook.c | |
parent | 8e31dbc1dcb56d40bcc1dd45840aaef0d37bae51 (diff) | |
download | ffmpeg-f7b57add8ee0cb234617ca1c86e2d334b50fdc38.tar.gz |
cook: tighten the quant_index_table range further.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r-- | libavcodec/cook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index fbd910e243..db4245c236 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -389,7 +389,7 @@ static int decode_envelope(COOKContext *q, COOKSubpacket *p, q->envelope_quant_index[vlc_index - 1].bits, 2); quant_index_table[i] = quant_index_table[i - 1] + j - 12; // differential encoding - if (quant_index_table[i] < -63 || quant_index_table[i] > 64) { + if (quant_index_table[i] < -63 || quant_index_table[i] > 63) { av_log(NULL, AV_LOG_ERROR, "quant_index_table value out of bounds\n"); return AVERROR_INVALIDDATA; } |