ffmpeg | branch: master | Umair Khan <omerj...@gmail.com> | Mon Nov 13 11:25:42 
2017 +0530| [55937bb4a7df157fb08f79e7e623a16280533275] | committer: Carl Eugen 
Hoyos

libavcodec/als: fix address sanitization error in decoder

Signed-off-by: Umair Khan <omerj...@gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=55937bb4a7df157fb08f79e7e623a16280533275
---

 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++)

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to