1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-19 17:53:28 +00:00

Fixed crash on self-update, caused by IOActive fix on posix

This commit is contained in:
Bryan Roe
2020-10-17 13:35:11 -07:00
parent d895d92e07
commit 7ae97b3a7d
3 changed files with 13 additions and 0 deletions

View File

@@ -2514,6 +2514,11 @@ int ILibDuktape_ScriptContainer_DebuggingOK(duk_context *ctx)
duk_context *ILibDuktape_ScriptContainer_InitializeJavaScriptEngineEx3(duk_context *ctx, SCRIPT_ENGINE_SECURITY_FLAGS securityFlags, unsigned int executionTimeout, void *chain, char **argList, ILibSimpleDataStore *db, char *exePath, ILibProcessPipe_Manager pipeManager, ILibDuktape_HelperEvent exitHandler, void *exitUser)
{
void **timeoutKey = executionTimeout > 0 ? (void**)ILibMemory_Allocate(sizeof(void*), 0, NULL, NULL) : NULL;
if (chain == NULL)
{
duk_ctx_context_data(ctx)->fakechain = 1;
chain = ILibCreateChain();
}
duk_ctx_context_data(ctx)->chain = chain;
duk_push_heap_stash(ctx); // [s]