avoid C stack overflow during parsing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: llimits.h,v 1.46 2002/10/08 18:46:08 roberto Exp roberto $
|
||||
** $Id: llimits.h,v 1.47 2002/10/22 17:18:28 roberto Exp roberto $
|
||||
** Limits, basic types, and some other `installation-dependent' definitions
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -165,4 +165,10 @@ typedef unsigned long Instruction;
|
||||
#endif
|
||||
|
||||
|
||||
/* maximum number of syntactical nested non-terminals */
|
||||
#ifndef LUA_MAXPARSERLEVEL
|
||||
#define LUA_MAXPARSERLEVEL 200
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user