mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
avformat/iamf_reader: propagate avio_skip() error values
Fixes: null pointer derference Fixes: 67007/clusterfuzz-testcase-minimized-ffmpeg_dem_IAMF_fuzzer-6522819204677632 Tested-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
e04c638f5f
commit
97d2990ea6
@ -310,10 +310,8 @@ int ff_iamf_read_packet(AVFormatContext *s, IAMFDemuxContext *c,
|
||||
c->recon_size = 0;
|
||||
} else {
|
||||
int64_t offset = avio_skip(pb, obu_size);
|
||||
if (offset < 0) {
|
||||
ret = offset;
|
||||
break;
|
||||
}
|
||||
if (offset < 0)
|
||||
return offset;
|
||||
}
|
||||
max_size -= len;
|
||||
if (max_size < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user