mpc8: Check out of bound bands limit
Signed-off-by: Janne Grunau <janne-libav@jannau.net> (cherry picked from commit 9bd854b1ff342f82efa6d2ad4e8fefddce5fa731) Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
be2404b06d
commit
59050c0629
@ -266,6 +266,8 @@ static int mpc8_decode_frame(AVCodecContext * avctx,
|
||||
maxband = c->last_max_band + get_vlc2(gb, band_vlc.table, MPC8_BANDS_BITS, 2);
|
||||
if(maxband > 32) maxband -= 33;
|
||||
}
|
||||
if(maxband > c->maxbands)
|
||||
return AVERROR_INVALIDDATA;
|
||||
c->last_max_band = maxband;
|
||||
|
||||
/* read subband indexes */
|
||||
|
Loading…
x
Reference in New Issue
Block a user