On Sun, Aug 04, 2013 at 06:49:10PM +0200, Luca Barbato wrote: > Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind > CC: [email protected] > --- > libavcodec/bink.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavcodec/bink.c b/libavcodec/bink.c > index 7ec0cab..98a54c6 100644 > --- 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; > --
LGTM _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
