On Sat, May 18, 2013 at 04:02:49PM +0200, Luca Barbato wrote: > Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind > CC: [email protected] > --- > libavcodec/wavpack.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c > index 999e532..ab4b02d 100644 > --- a/libavcodec/wavpack.c > +++ b/libavcodec/wavpack.c > @@ -795,6 +795,9 @@ static int wavpack_decode_block(AVCodecContext *avctx, > int block_no, > > if (!wc->mkv_mode) { > s->samples = AV_RL32(buf); buf += 4; > + if (s->samples != wc->samples) > + return AVERROR_INVALIDDATA; > + > if (!s->samples) { > *got_frame_ptr = 0; > return 0; > --
looks OK _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
