[FFmpeg-cvslog] g729dec: prevent out of array access

Michael Niedermayer git at videolan.org
Sat Oct 1 06:18:40 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct  1 06:07:05 2011 +0200| [fe70c1f45f108c73ebb9c23009e271a96336796f] | committer: Michael Niedermayer

g729dec: prevent out of array access

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/g729postfilter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/g729postfilter.c b/libavcodec/g729postfilter.c
index 2b66bde..87472f6 100644
--- a/libavcodec/g729postfilter.c
+++ b/libavcodec/g729postfilter.c
@@ -516,7 +516,7 @@ void ff_g729_postfilter(DSPContext *dsp, int16_t* ht_prev_data, int* voicing,
                      int16_t* residual, int16_t* res_filter_data,
                      int16_t* pos_filter_data, int16_t *speech, int subframe_size)
 {
-    int16_t residual_filt_buf[SUBFRAME_SIZE+10];
+    int16_t residual_filt_buf[SUBFRAME_SIZE+11];
     int16_t lp_gn[33]; // (3.12)
     int16_t lp_gd[11]; // (3.12)
     int tilt_comp_coeff;



More information about the ffmpeg-cvslog mailing list