#4503 Crash at openHeaderEntriesFile

master
Andrey Kleshchev 2025-08-08 21:57:28 +03:00 committed by Andrey Kleshchev
parent 93a66b4764
commit 8ef660a745
1 changed files with 1 additions and 0 deletions

View File

@ -1354,6 +1354,7 @@ U32 LLTextureCache::openAndReadEntries(std::vector<Entry>& entries)
if (bytes_read < sizeof(Entry))
{
LL_WARNS() << "Corrupted header entries, failed at " << idx << " / " << num_entries << LL_ENDL;
closeHeaderEntriesFile();
return 0;
}
entries.push_back(entry);