eamad: fix out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
130dc95187
commit
63ac64864c
@ -237,7 +237,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
int chunk_type;
|
int chunk_type;
|
||||||
int inter;
|
int inter;
|
||||||
|
|
||||||
if (buf_size < 17) {
|
if (buf_size < 26) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Input buffer too small\n");
|
av_log(avctx, AV_LOG_ERROR, "Input buffer too small\n");
|
||||||
*data_size = 0;
|
*data_size = 0;
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user