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

@@ -436,6 +436,7 @@ bool Scripting::Load()
PROFILE_CPU();
// Note: this action can be called from main thread (due to Mono problems with assemblies actions from other threads)
ASSERT(IsInMainThread());
ScopeLock lock(BinaryModule::Locker);
#if USE_CSHARP
// Load C# core assembly