Branch: Tag:

2000-09-19

2000-09-19 15:21:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Backported infinite exit_on_error()/describe_svalue()/safe_apply_low() fix from Pike 7.1.
Should fix [bug 185 (#185)].

Rev: src/interpret.c:1.142

5:   \*/   /**/   #include "global.h" - RCSID("$Id: interpret.c,v 1.141 2000/08/28 22:09:54 hubbe Exp $"); + RCSID("$Id: interpret.c,v 1.142 2000/09/19 15:21:44 grubba Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"
1422:    {    if(throw_value.type == T_ARRAY)    { +  static int inside=0; +  if(!inside) +  {    ONERROR tmp; -  +  /* We silently ignore errors if we are already describing one.. */ +  inside=1;    SET_ONERROR(tmp,exit_on_error,"Error in handle_error in master object!");    assign_svalue_no_free(sp++, & throw_value);    APPLY_MASTER("handle_error", 1);    pop_stack();    UNSET_ONERROR(tmp); -  +  inside=0;    } -  +  }       sp->u.integer = 0;    sp->subtype=NUMBER_NUMBER;