+ Fixed arbitrarily large allocations caused by TQMPHeader::dwBlockTableSize

This commit is contained in:
Zezula Ladislav
2018-10-15 11:23:52 +02:00
parent 4ad0bff21d
commit f35d106059
6 changed files with 50 additions and 15 deletions

View File

@@ -308,7 +308,10 @@ bool WINAPI SFileOpenFileEx(HANDLE hMpq, const char * szFileName, DWORD dwSearch
}
}
nError = ERROR_FILE_NOT_FOUND;
if(pFileEntry == NULL)
{
nError = ERROR_FILE_NOT_FOUND;
}
}
// Ignore unknown loading flags (example: MPQ_2016_v1_WME4_4.w3x)