[FFmpeg-cvslog] eamad: fix out of array accesses

Michael Niedermayer git at videolan.org
Mon Feb 18 01:09:56 CET 2013


ffmpeg | branch: release/0.7 | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 17 16:26:55 2012 +0100| [af343f5cddc5b40cea53ea7c38e582dc9caae15b] | committer: Michael Niedermayer

eamad: fix out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 63ac64864c6e0e84355aa3caa5b92208997a9a8d)

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

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

 libavcodec/eamad.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c
index 602bbfc..a431bbc 100644
--- a/libavcodec/eamad.c
+++ b/libavcodec/eamad.c
@@ -249,7 +249,7 @@ static int decode_frame(AVCodecContext *avctx,
     int chunk_type;
     int inter;
 
-    if (buf_size < 17) {
+    if (buf_size < 26) {
         av_log(avctx, AV_LOG_ERROR, "Input buffer too small\n");
         *data_size = 0;
         return -1;



More information about the ffmpeg-cvslog mailing list