diff --git a/vm/scripted-invoker.cpp b/vm/scripted-invoker.cpp index 7ecd2bc6b..c265c6967 100644 --- a/vm/scripted-invoker.cpp +++ b/vm/scripted-invoker.cpp @@ -292,8 +292,14 @@ ScriptedInvoker::Invoke(cell_t *result) } /* Make the call if we can */ - if (ok) + if (ok) { + const char *debugName = this->DebugName(); + size_t debugNameLength = strlen(debugName) + 2; + volatile char * volatile debugNameForCrashDumps = (char *)alloca(debugNameLength); + SafeStrcpy((char *)debugNameForCrashDumps + 1, debugNameLength - 1, debugName); + ok = context_->Invoke(m_FnId, temp_params, numparams, result); + } /* i should be equal to the last valid parameter + 1 */ bool docopies = ok;