mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
SCI: Fix use-after-free when kernel call debugging is active during a save game restore
This commit is contained in:
@@ -988,6 +988,10 @@ void debugPropertyAccess(Object *obj, reg_t objp, unsigned int index, reg_t curV
|
||||
}
|
||||
|
||||
void logKernelCall(const KernelFunction *kernelCall, const KernelSubFunction *kernelSubCall, EngineState *s, int argc, reg_t *argv, reg_t result) {
|
||||
if (s->abortScriptProcessing != kAbortNone) {
|
||||
return;
|
||||
}
|
||||
|
||||
Kernel *kernel = g_sci->getKernel();
|
||||
if (!kernelSubCall) {
|
||||
debugN("k%s: ", kernelCall->name);
|
||||
|
||||
Reference in New Issue
Block a user