From 55937bb4a7df157fb08f79e7e623a16280533275 Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Mon, 13 Nov 2017 11:07:42 +0530 Subject: [PATCH] libavcodec/als: fix address sanitization error in decoder Signed-off-by: Umair Khan --- libavcodec/alsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 9a72686413..ca8701e6d0 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -920,7 +920,7 @@ static int decode_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) // reconstruct all samples from residuals if (bd->ra_block) { - for (smp = 0; smp < opt_order; smp++) { + for (smp = 0; smp < FFMIN(opt_order, block_length); smp++) { y = 1 << 19; for (sb = 0; sb < smp; sb++)