mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
fix: Potential use-after-free with the .NET SDK
This commit is contained in:
@@ -150,11 +150,11 @@ namespace hex::script::loader {
|
||||
auto dotnetType = STRING("ImHex.EntryPoint, AssemblyLoader");
|
||||
|
||||
const char_t *dotnetTypeMethod = STRING("ExecuteScript");
|
||||
const auto &assemblyPathStr = assemblyLoader.native();
|
||||
this-> m_assemblyLoaderPathString = assemblyLoader.native();
|
||||
|
||||
component_entry_point_fn entryPoint = nullptr;
|
||||
u32 result = loadAssembly(
|
||||
assemblyPathStr.c_str(),
|
||||
this->m_assemblyLoaderPathString.c_str(),
|
||||
dotnetType,
|
||||
dotnetTypeMethod,
|
||||
nullptr,
|
||||
|
||||
Reference in New Issue
Block a user