Add security lockers for managed typeinfo access

This commit is contained in:
Wojtek Figat
2023-11-13 15:48:12 +01:00
parent 46f82aabcd
commit 97a28d4431
3 changed files with 25 additions and 3 deletions

View File

@@ -906,6 +906,7 @@ void ManagedBinaryModule::OnLoaded(MAssembly* assembly)
#if !COMPILE_WITHOUT_CSHARP
PROFILE_CPU();
ASSERT(ClassToTypeIndex.IsEmpty());
ScopeLock lock(Locker);
const auto& classes = assembly->GetClasses();