Merge pull request #116719 from DeeJayLSP/wav-list-min

`AudioStreamWAV`: Check for `eof_reached` when reading LIST INFO tags
This commit is contained in:
Thaddeus Crews
2026-02-25 09:27:42 -06:00
+1
View File
@@ -881,6 +881,7 @@ Ref<AudioStreamWAV> AudioStreamWAV::load_from_buffer(const Vector<uint8_t> &p_st
// 'INFO' list type.
// The size of an entry can be arbitrary.
while (file->get_position() < end_of_chunk) {
ERR_BREAK_MSG(file->eof_reached(), "EOF reached while reading INFO chunk.");
char info_id[4];
file->get_buffer((uint8_t *)&info_id, 4);