55dc7fb240
bug: stack must be cleared until its end (including extra size) + control of stack size moved to 'ldo.c'
Roberto Ierusalimschy2009-07-16 13:26:09 -03:00
11d7ba79f2
tail calls do not need to move whole new frame down, only its slice up to last parameter (the rest has not been used yet)
Roberto Ierusalimschy2009-07-15 15:38:16 -03:00
0c258c8492
smart use of varargs may create functions that return too many arguments and overflow the stack of C functions.
Roberto Ierusalimschy2009-07-02 16:57:34 -03:00
d57c9cdefc
BUG: 'luaV_settable' may invalidate a reference to a table and try to reuse it.
Roberto Ierusalimschy2009-07-01 18:10:33 -03:00
afb3f7e754
bug: 'luaV_settable' may invalidate a reference to a table and try to reuse it.
Roberto Ierusalimschy2009-07-01 17:31:25 -03:00
1d6ebce296
new function 'lua_version' (so that 'checkversion' can be implemented in the auxiliary library)
Roberto Ierusalimschy2009-06-18 15:59:18 -03:00
bc3e02a1b7
default paths have dot option as the last one (to improve security)
Roberto Ierusalimschy2009-06-18 15:19:36 -03:00
c1de1fdac6
small optimization in 'lua_arith' (avoids overhead in the common case of both arguments being numbers)
Roberto Ierusalimschy2009-06-18 13:36:40 -03:00
2bdd194f43
exports luaV_arith to be used by lua_arith + uses 'luaO_arith' to perform basic arith. operations
Roberto Ierusalimschy2009-06-17 14:50:09 -03:00
5cdec7d124
added "\n" at the end of 'package.config' (so that the string is a sequence of complete lines)
Roberto Ierusalimschy2009-06-04 16:34:24 -03:00
9423e22aa3
no more L->base + ci->base only for Lua functions (C functions may use 'func')
Roberto Ierusalimschy2009-06-01 16:09:26 -03:00
57f8414de1
small bug in 'luaV_concat' (L->top was left incorrect in some cases)
Roberto Ierusalimschy2009-05-27 14:11:27 -03:00
139d562861
type of 'luai_ctype_' array changed to unsigned (safer for bitwise operations)
Roberto Ierusalimschy2009-05-27 13:51:15 -03:00
92479f1a8b
new property 'lisupper' (needed to compute values for hexa digits)
Roberto Ierusalimschy2009-05-18 14:15:14 -03:00
e67dc3a227
'symbexec' merged with 'getobjname' (as only use for symbolic execution now is to find a "good" name for an object)
Roberto Ierusalimschy2009-05-04 15:26:21 -03:00
e091a254df
new way to GC stacks: the entire stack must be correct all the times; the 'dead' part of a stack (after the top) must have only nil's, so that 'top' may go up without cleaning the stack.
Roberto Ierusalimschy2009-04-28 16:04:36 -03:00
58c3aa8b5f
malicious zero-length string in binary code may segfault Lua + wrong code generation for some particular boolean expressions
Roberto Ierusalimschy2009-04-27 17:11:11 -03:00
e5249b9fb5
'exit' changed to 'abort' in case of panic (+ some extra comments) 'abort' seems more in line with panic ("abnormal termination")
Roberto Ierusalimschy2009-04-26 18:55:35 -03:00
d3037d97ec
several small improvements based on 'ci' being fixed now (including erasing savedpc from lua_State)
Roberto Ierusalimschy2009-04-17 19:00:01 -03:00
1817dfc301
initial separation, in CallInfo, of what is relevant only to Lua functions or only to C functions
Roberto Ierusalimschy2009-03-04 10:32:29 -03:00
7837e34e56
new states have a reasonable panic function + testC may run code on different threads + rename of some testC operations ('rawcall'->'call', 'call'->'pcall')
Roberto Ierusalimschy2009-03-03 15:52:36 -03:00
910310d3ba
if thread has no error handling, try main thread handler before panicking
Roberto Ierusalimschy2009-03-03 15:51:24 -03:00
b403317325
error functions search global space for a name for a function when no other name is available
Roberto Ierusalimschy2009-02-27 15:18:19 -03:00
2b579b4b83
panic mode does not reset stack (so that panic function can gather debug information from it)
Roberto Ierusalimschy2009-02-18 11:52:03 -03:00