[FFmpeg-cvslog] libavcodec/als: fix address sanitization error in decoder

Umair Khan git at videolan.org
Fri Nov 17 00:37:34 EET 2017


ffmpeg | branch: master | Umair Khan <omerjerk at 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 <omerjerk at 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++)



More information about the ffmpeg-cvslog mailing list