aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUmair Khan <omerjerk@gmail.com>2017-11-13 11:07:42 +0530
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-11-16 23:37:11 +0100
commit55937bb4a7df157fb08f79e7e623a16280533275 (patch)
tree2cb8a400a9e2fd8481ccc2ab5cbfd6859053efdb
parente510a8251b3fc385dfe2f0482ece5643c7d66f06 (diff)
downloadffmpeg-55937bb4a7df157fb08f79e7e623a16280533275.tar.gz
libavcodec/als: fix address sanitization error in decoder
Signed-off-by: Umair Khan <omerjerk@gmail.com>
-rw-r--r--libavcodec/alsdec.c2
1 files changed, 1 insertions, 1 deletions
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++)