lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 0a850e641d90dde8d55c299e0197eb7148072df9
parent 916bd874ad7270a89ae07fc76ddac00a34272fe9
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed, 22 Jan 2014 18:01:39 -0200

larger limit + better error messages for loop detection in inheritance

Diffstat:
Mlvm.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lvm.c b/lvm.c @@ -1,5 +1,5 @@ /* -** $Id: lvm.c,v 2.182 2013/12/18 14:12:03 roberto Exp roberto $ +** $Id: lvm.c,v 2.183 2013/12/30 20:47:58 roberto Exp roberto $ ** Lua virtual machine ** See Copyright Notice in lua.h */ @@ -30,7 +30,7 @@ /* limit for table tag-method chains (to avoid loops) */ -#define MAXTAGLOOP 100 +#define MAXTAGLOOP 2000 /* maximum length of the conversion of a number to a string */ @@ -122,7 +122,7 @@ void luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val) { } t = tm; /* else repeat with 'tm' */ } - luaG_runerror(L, "loop in gettable"); + luaG_runerror(L, "gettable chain too long; possible loop"); } @@ -161,7 +161,7 @@ void luaV_settable (lua_State *L, const TValue *t, TValue *key, StkId val) { } t = tm; /* else repeat with 'tm' */ } - luaG_runerror(L, "loop in settable"); + luaG_runerror(L, "settable chain too long; possible loop"); }