mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-05-09 12:32:56 +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
f8501d3399
commit
b6697fbdca
@@ -680,7 +680,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