wmalosslessdec: make mclms arrays big enough for whats written into them.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 14 Apr 2012 12:49:22 +0000 (14:49 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 14 Apr 2012 12:49:51 +0000 (14:49 +0200)
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wmalosslessdec.c

index 374dc74..1904a1c 100644 (file)
@@ -126,8 +126,8 @@ typedef struct WmallDecodeCtx {
     int8_t  mclms_scaling;
     int16_t mclms_coeffs[128];
     int16_t mclms_coeffs_cur[4];
-    int16_t mclms_prevvalues[64];
-    int16_t mclms_updates[64];
+    int16_t mclms_prevvalues[WMALL_MAX_CHANNELS * 2 * 32];
+    int16_t mclms_updates[WMALL_MAX_CHANNELS * 2 * 32];
     int     mclms_recent;
 
     int     movave_scaling;