[FFmpeg-cvslog] sbr: increase f_tablelim size, it appears it was too small by 1.

Michael Niedermayer git at videolan.org
Mon Nov 19 13:29:50 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Nov 19 05:01:01 2012 +0100| [fdbb6164a208df6d2665453da6d18d2cda13189b] | committer: Michael Niedermayer

sbr: increase f_tablelim size, it appears it was too small by 1.

Prevent out of array accesses.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/sbr.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/sbr.h b/libavcodec/sbr.h
index 7c0afdc..1e41396 100644
--- a/libavcodec/sbr.h
+++ b/libavcodec/sbr.h
@@ -153,7 +153,7 @@ typedef struct SpectralBandReplication {
     ///Frequency borders for noise floors
     uint16_t           f_tablenoise[6];
     ///Frequency borders for the limiter
-    uint16_t           f_tablelim[29];
+    uint16_t           f_tablelim[30];
     unsigned           num_patches;
     uint8_t            patch_num_subbands[6];
     uint8_t            patch_start_subband[6];



More information about the ffmpeg-cvslog mailing list