On Sat, Sep 29, 2012 at 02:04:54PM +0200, Anton Khirnov wrote: > From: Michael Niedermayer <[email protected]> > > Fixes a part of CVE-2012-2795 > > Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind > Signed-off-by: Michael Niedermayer <[email protected]> > Signed-off-by: Anton Khirnov <[email protected]> > --- > libavcodec/wmalosslessdec.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c > index c67a392..cfa877f 100644 > --- a/libavcodec/wmalosslessdec.c > +++ b/libavcodec/wmalosslessdec.c > @@ -129,8 +129,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; > --
s/whats/what is/ and MCLMS is an abbreviation</Diego> LGTM _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
