You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
avformat/wavdec: Fix use-of-uninitialized-value in find_guid()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 163ba704b7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
a7f9139b76
commit
02329a5e8d
@@ -684,7 +684,8 @@ static int64_t find_guid(AVIOContext *pb, const uint8_t guid1[16])
|
||||
int64_t size;
|
||||
|
||||
while (!avio_feof(pb)) {
|
||||
avio_read(pb, guid, 16);
|
||||
if (avio_read(pb, guid, 16) != 16)
|
||||
break;
|
||||
size = avio_rl64(pb);
|
||||
if (size <= 24 || size > INT64_MAX - 8)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
Reference in New Issue
Block a user