On Fri, May 17, 2013 at 11:15:36PM +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..233c533 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)
they all should be the same, so !=
> + return AVERROR_INVALIDDATA;
> +
> if (!s->samples) {
> *got_frame_ptr = 0;
> return 0;
> --
otherwise OK
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel