diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-08-10 23:09:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-08-11 19:13:21 +0200 |
commit | 1d72b5d2d5225dde0662a1f2083a27f86a8fdb98 (patch) | |
tree | 4945a2ad893e8340e89b038807632c0eba160ef6 /libavformat | |
parent | 52b564ef13237bfbb31a4103d29828dba9d14984 (diff) | |
download | ffmpeg-1d72b5d2d5225dde0662a1f2083a27f86a8fdb98.tar.gz |
avformat/vividas: Fix another infinite loop
Not found by the fuzzer
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/vividas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/vividas.c b/libavformat/vividas.c index a5f33181de..0c33ca2da8 100644 --- a/libavformat/vividas.c +++ b/libavformat/vividas.c @@ -546,7 +546,7 @@ static int viv_read_header(AVFormatContext *s) break; block_len = ffio_read_varlen(pb); - if (avio_feof(pb)) + if (avio_feof(pb) || block_len <= 0) return AVERROR_INVALIDDATA; block_type = avio_r8(pb); |