mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
avidec: Check that the header chunks fit in the available filesize.
Fixes Ticket771 Bug found by: Diana Elena Muscalu Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f72601d063
commit
62adc60b97
@ -387,6 +387,11 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||
tag = avio_rl32(pb);
|
||||
size = avio_rl32(pb);
|
||||
|
||||
if(size > avi->fsize){
|
||||
av_log(s, AV_LOG_ERROR, "chunk size is too big during header parsing\n");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
print_tag("tag", tag, size);
|
||||
|
||||
switch(tag) {
|
||||
|
Loading…
Reference in New Issue
Block a user