Commit 20769d93 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/electronicarts: check chunk size.

Fix infinite loop
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bdab2421
......@@ -361,6 +361,11 @@ static int process_ea_header(AVFormatContext *s)
if (ea->big_endian)
size = av_bswap32(size);
if (size < 8) {
av_log(s, AV_LOG_ERROR, "chunk size too small\n");
return AVERROR_INVALIDDATA;
}
switch (blockid) {
case ISNh_TAG:
if (avio_rl32(pb) != EACS_TAG) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment