pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2004-11-14
2004-11-14 11:43:53 by Martin Stjernholm <mast@lysator.liu.se>
2cff8d33dd942a4165f0a91cd127766c08d9d8ad (
5
lines) (+
4
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added check for too large size to f_allocate.
Rev: src/builtin_functions.c:1.575
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.
574
2004/11/14
03
:
42
:
21
aldem
Exp $
+
|| $Id: builtin_functions.c,v 1.
575
2004/11/14
11
:
43
:
53
mast
Exp $
*/ #include "global.h"
1988:
struct svalue *init; get_all_args("allocate", args, "%+.%*", &size, &init);
+
if (size > MAX_INT32)
+
SIMPLE_ARG_ERROR ("allocate", 1, "Integer too large to use as array size.");
a=allocate_array(size); if(args>1)