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> (cherry picked from commit 1d72b5d2d5225dde0662a1f2083a27f86a8fdb98) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
f5c6f81576
commit
4d7bbeb164
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user