Branch: Tag:

2007-06-17

2007-06-17 01:33:51 by Martin Stjernholm <mast@lysator.liu.se>

Fixed bug in profiling mode that could cause writes to arbitrary addresses.

Rev: src/interpret.c:1.382
Rev: src/interpret.h:1.170

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.381 2007/06/11 16:12:40 grubba Exp $ + || $Id: interpret.c,v 1.382 2007/06/17 01:33:51 mast Exp $   */      #include "global.h"
38:   #include <fcntl.h>   #include <errno.h>   #include <ctype.h> + #include <assert.h>      #ifdef HAVE_MMAP   #ifdef HAVE_SYS_TYPES_H
2399:    o->prog->flags = p_flags;    }    -  POP_PIKE_FRAME(); +  assert (new_frame == Pike_fp); +  LOW_POP_PIKE_FRAME (new_frame);       return ret;   }