2003-01-28
2003-01-28 13:18:18 by Martin Stjernholm <mast@lysator.liu.se>
-
615b3e42e7154e9ca0c379f602b5d397ac3e4ae6
(11 lines)
(+7/-4)
[
Show
| Annotate
]
Branch: 7.9
Fixed security check for next_object. Do not run the gc twice in
verify_internals.
Rev: src/builtin_functions.c:1.465
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.464 2003/01/26 11:09:00 mirar Exp $
+ || $Id: builtin_functions.c,v 1.465 2003/01/28 13:18:18 mast Exp $
*/
#include "global.h"
- RCSID("$Id: builtin_functions.c,v 1.464 2003/01/26 11:09:00 mirar Exp $");
+ RCSID("$Id: builtin_functions.c,v 1.465 2003/01/28 13:18:18 mast Exp $");
#include "interpret.h"
#include "svalue.h"
#include "pike_macros.h"
2512:
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;
3787: 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(NULL, 1);
+
pop_n_elems(args);
}