Branch: Tag:

2003-01-28

2003-01-28 13:18:18 by Martin Stjernholm <mast@lysator.liu.se>

Fixed security check for next_object. Do not run the gc twice in
verify_internals.

Rev: src/builtin_functions.c:1.454

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: builtin_functions.c,v 1.453 2002/12/01 18:53:05 mast Exp $ + || $Id: builtin_functions.c,v 1.454 2003/01/28 13:18:18 mast Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.453 2002/12/01 18:53:05 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.454 2003/01/28 13:18:18 mast Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
2618:   PMOD_EXPORT void f_next_object(INT32 args)   {    struct object *o; +  +  CHECK_SECURITY_OR_ERROR(SECURITY_BIT_SECURITY, ("next_object: permission denied.\n")); +     if(args < 1)    {    o = first_object;
3869: Inside #if defined(PIKE_DEBUG)
   CHECK_SECURITY_OR_ERROR(SECURITY_BIT_SECURITY,    ("_verify_internals: permission denied.\n"));    d_flag=0x7fffffff; -  do_debug(); +  do_debug(); /* Runs gc too since d_flag > 3. */    d_flag=tmp; -  do_gc(); +     pop_n_elems(args);   }