mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +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;
|
c->recon_size = 0;
|
||||||
} else {
|
} else {
|
||||||
int64_t offset = avio_skip(pb, obu_size);
|
int64_t offset = avio_skip(pb, obu_size);
|
||||||
if (offset < 0) {
|
if (offset < 0)
|
||||||
ret = offset;
|
return offset;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
max_size -= len;
|
max_size -= len;
|
||||||
if (max_size < 0)
|
if (max_size < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user