diff options
author | Zane van Iperen <zane@zanevaniperen.com> | 2020-09-06 11:00:17 +1000 |
---|---|---|
committer | Zane van Iperen <zane@zanevaniperen.com> | 2020-09-14 14:23:15 +1000 |
commit | 0476b6ee1eaa258c7b527de0f477f6b4c9838dab (patch) | |
tree | d8781922a06a04e80b86449caa8d3579947f8aa9 | |
parent | 96907e84ddd40a770d0526537dba6e8b3f6b70f7 (diff) | |
download | ffmpeg-0476b6ee1eaa258c7b527de0f477f6b4c9838dab.tar.gz |
avformat/argo_asf: bail if invalid tag
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
-rw-r--r-- | libavformat/argo_asf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/argo_asf.c b/libavformat/argo_asf.c index bf9b5d0c0a..208280b4d9 100644 --- a/libavformat/argo_asf.c +++ b/libavformat/argo_asf.c @@ -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) { |