1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/argo_asf: bail if invalid tag

Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
Zane van Iperen 2020-09-06 11:00:17 +10:00
parent 96907e84dd
commit 0476b6ee1e
No known key found for this signature in database
GPG Key ID: 68616B2D8AC4DCC5

View File

@ -144,6 +144,9 @@ static int argo_asf_read_header(AVFormatContext *s)
argo_asf_parse_file_header(&asf->fhdr, buf);
if (asf->fhdr.magic != ASF_TAG)
return AVERROR_INVALIDDATA;
if (asf->fhdr.num_chunks == 0) {
return AVERROR_INVALIDDATA;
} else if (asf->fhdr.num_chunks > 1) {