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