You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
cook: tighten the quant_index_table range further.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -389,7 +389,7 @@ static int decode_envelope(COOKContext *q, COOKSubpacket *p,
|
|||||||
q->envelope_quant_index[vlc_index - 1].bits, 2);
|
q->envelope_quant_index[vlc_index - 1].bits, 2);
|
||||||
quant_index_table[i] = quant_index_table[i - 1] + j - 12; // differential encoding
|
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");
|
av_log(NULL, AV_LOG_ERROR, "quant_index_table value out of bounds\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user