aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-17 16:26:55 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-03 20:45:37 +0100
commitc8833a13cf530fbf5b1d579cd1ae527a0904403f (patch)
tree8859cdd854c67ae766d2f6d53b362a96fd69b86e
parent28bf685bfc6d0c744369cdf367f61a78d80d0b01 (diff)
downloadffmpeg-c8833a13cf530fbf5b1d579cd1ae527a0904403f.tar.gz
eamad: fix out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 63ac64864c6e0e84355aa3caa5b92208997a9a8d)
-rw-r--r--libavcodec/eamad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c
index b3382406cd..47a9231868 100644
--- a/libavcodec/eamad.c
+++ b/libavcodec/eamad.c
@@ -237,7 +237,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;