1
0
Fork 0

Codefix: check the table header is actually being read

pull/13797/head
Rubidium 2025-03-11 23:32:01 +01:00
parent 3336f13a63
commit 046a5c5537
1 changed files with 2 additions and 2 deletions

View File

@ -2110,7 +2110,7 @@ static void SlLoadChunk(const ChunkHandler &ch)
/* The header should always be at the start. Read the length; the
* Load() should as first action process the header. */
if (_sl.expect_table_header) {
SlIterateArray();
if (SlIterateArray() != INT32_MAX) SlErrorCorrupt("Table chunk without header");
}
switch (_sl.block_mode) {
@ -2163,7 +2163,7 @@ static void SlLoadCheckChunk(const ChunkHandler &ch)
/* The header should always be at the start. Read the length; the
* LoadCheck() should as first action process the header. */
if (_sl.expect_table_header) {
SlIterateArray();
if (SlIterateArray() != INT32_MAX) SlErrorCorrupt("Table chunk without header");
}
switch (_sl.block_mode) {