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:
ASTRA
2026-04-23 22:26:30 +02:00
committed by Michael Niedermayer
parent f8501d3399
commit b6697fbdca
+2 -1
View File
@@ -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;