Branch: Tag:

2009-04-01

2009-04-01 20:41:32 by Martin Stjernholm <mast@lysator.liu.se>

Fixed bug with a C stack check in F_CATCH that could be thrown from a spot
where the catch context wasn't properly set up.

Rev: src/interpret.c:1.412
Rev: src/interpret_functions.h:1.211

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: interpret.c,v 1.411 2008/11/19 21:47:09 mast Exp $ + || $Id: interpret.c,v 1.412 2009/04/01 20:41:32 mast Exp $   */      #include "global.h"
2240:   #endif    return -3;    }else{ -  int x = eval_instruction(pc); +  int x; +  check_c_stack(8192); +  x = eval_instruction(pc);    Pike_interpreter.catching_eval_jmpbuf = NULL;   #ifdef PIKE_DEBUG    pike_trace(3, "- catching_eval_instruction(%p) ==> %d\n", pc, x);