From ba7da13ec5938f978c37d63aa40a3e340b301f79 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 27 Dec 2018 14:32:29 -0200 Subject: Changes in the control of C-stack overflow * unification of the 'nny' and 'nCcalls' counters; * external C functions ('lua_CFunction') count more "slots" in the C stack (to allow for their possible use of buffers) * added a new test script specific for C-stack overflows. (Most of those tests were already present, but concentrating them in a single script easies the task of checking whether 'LUAI_MAXCCALLS' is adequate in a system.) --- llimits.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'llimits.h') diff --git a/llimits.h b/llimits.h index 8ab58b5c..9d35d1c7 100644 --- a/llimits.h +++ b/llimits.h @@ -184,11 +184,13 @@ typedef LUAI_UACINT l_uacInt; ** must be an unsigned with (at least) 4 bytes (see details in lopcodes.h) */ #if LUAI_BITSINT >= 32 -typedef unsigned int Instruction; +typedef unsigned int l_uint32; #else -typedef unsigned long Instruction; +typedef unsigned long l_uint32; #endif +typedef l_uint32 Instruction; + /* -- cgit v1.2.3-55-g6feb