On Tue, Sep 04, 2012 at 02:32:20PM -0400, Justin Ruggles wrote:
> From: Michael Niedermayer <[email protected]>
> 
> Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
> Signed-off-by: Michael Niedermayer <[email protected]>
> Signed-off-by: Justin Ruggles <[email protected]>
> ---
>  libavcodec/alsdec.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
> index dce248d..defe3c4 100644
> --- a/libavcodec/alsdec.c
> +++ b/libavcodec/alsdec.c
> @@ -669,6 +669,7 @@ static int read_var_block_data(ALSDecContext *ctx, 
> ALSBlockData *bd)
>                                                  2, sconf->max_order + 1));
>              *bd->opt_order       = get_bits(gb, opt_order_length);
>              if (*bd->opt_order > sconf->max_order) {
> +                *bd->opt_order = sconf->max_order;
>                  av_log(avctx, AV_LOG_ERROR, "Predictor order too large!\n");
>                  return AVERROR_INVALIDDATA;
>              }
> -- 

OK and maybe squash it with the previous patch
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to