mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-16 04:11:12 +00:00
avcodec/wavarc: check that nb_samples is valid
This commit is contained in:
parent
bdc76f467f
commit
d7c2da1f8d
@ -258,6 +258,10 @@ static int decode_2slp(AVCodecContext *avctx,
|
||||
return AVERROR_EOF;
|
||||
case 8:
|
||||
s->nb_samples = get_urice(gb, 8);
|
||||
if (s->nb_samples > 570) {
|
||||
s->nb_samples = 570;
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
continue;
|
||||
case 7:
|
||||
s->shift = get_urice(gb, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user