mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00:00
avformat/argo_brp: Check that ASF chunk header is completely read
Fixes: Use of uninitialized value Fixes: 71280/clusterfuzz-testcase-minimized-ffmpeg_dem_ARGO_BRP_fuzzer-4692991866896384 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
a7d10c4895
commit
1bb8ce371e
@ -380,8 +380,8 @@ static int argo_brp_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
if (blk.size < ASF_CHUNK_HEADER_SIZE)
|
if (blk.size < ASF_CHUNK_HEADER_SIZE)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
if ((ret = avio_read(s->pb, buf, ASF_CHUNK_HEADER_SIZE)) < 0)
|
if (avio_read(s->pb, buf, ASF_CHUNK_HEADER_SIZE) != ASF_CHUNK_HEADER_SIZE)
|
||||||
return ret;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
ff_argo_asf_parse_chunk_header(&ckhdr, buf);
|
ff_argo_asf_parse_chunk_header(&ckhdr, buf);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user