mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/rka: bps < 8 is invalid
Fixes: division by zero Fixes: 57828/clusterfuzz-testcase-minimized-ffmpeg_dem_RKA_fuzzer-6571818338353152 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
fd5aa93a37
commit
167b4f56f1
@ -72,7 +72,7 @@ static int rka_read_header(AVFormatContext *s)
|
||||
if (channels == 0)
|
||||
return AVERROR_INVALIDDATA;
|
||||
bps = par->extradata[13];
|
||||
if (bps == 0)
|
||||
if (bps < 8)
|
||||
return AVERROR_INVALIDDATA;
|
||||
size_offset = avio_rl32(s->pb);
|
||||
framepos = avio_tell(s->pb);
|
||||
|
Loading…
Reference in New Issue
Block a user