MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Critical Patch #2 for LambdaMOO release 1.8.0beta1



This patch fixes a potential server panic on `kill_task(task_id())'.  In
execute.c, in the function run_interpreter(), change these lines:

    handler_verb_args = zero;
    interpreter_is_running = 1;
    ret = run(e, result);
    interpreter_is_running = 0;
    task_timed_out = 0;
    cancel_timer(task_alarm_id);

    if (ret == OUTCOME_ABORTED) {

to these:

    handler_verb_args = zero;
    handler_verb_name = 0;
    interpreter_is_running = 1;
    ret = run(e, result);
    interpreter_is_running = 0;
    task_timed_out = 0;
    cancel_timer(task_alarm_id);

    if (ret == OUTCOME_ABORTED  &&  handler_verb_name) {

That should fix the problem.

	Pavel


References:

Home | Subject Index | Thread Index