Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed bug of long strings in binary chunksv5.3.6v5.3 | Roberto Ierusalimschy | 2020-08-18 | 2 | -7/+11 |
| | | | | | | | When "undumping" a long string, the function 'LoadVector' can call the reader function, which can run the garbage collector, which can collect the string being read. So, the string must be anchored during the call to 'LoadVector'. (This commit also fixes the identation in 'l_alloc'.) | ||||
* | Added directory 'testes/libs/P1' to the repository | Roberto Ierusalimschy | 2020-08-12 | 1 | -0/+2 |
| | | | | | This directory is used for some tests. As standard Lua has no command to create directories, it must be present before running the tests. | ||||
* | 'realloc' can fail when shrinking a block | Roberto Ierusalimschy | 2020-08-12 | 1 | -2/+7 |
| | | | | | | According to ISO C, 'realloc' can fail when shrinking a block. If that happens, 'l_alloc' simply ignores the fail and returns the original block. | ||||
* | Fixed bug: Negation overflow in getlocal/setlocal | Roberto Ierusalimschy | 2020-08-03 | 1 | -3/+4 |
| | |||||
* | Fixed bug: invalid mode can crash 'io.popen' | Roberto Ierusalimschy | 2020-07-20 | 1 | -0/+2 |
| | |||||
* | Updated release number and copyright year | Roberto Ierusalimschy | 2020-07-14 | 1 | -4/+3 |
| | |||||
* | Added .gitignore | Roberto Ierusalimschy | 2020-07-13 | 1 | -0/+13 |
| | |||||
* | Fixed missing GC barriers in compiler and undump | Roberto Ierusalimschy | 2020-06-18 | 2 | -8/+15 |
| | | | | | While building a new prototype, the GC needs barriers for every object (strings and nested prototypes) that is attached to the new prototype. | ||||
* | Fixed typos in comments | Roberto Ierusalimschy | 2019-12-27 | 2 | -2/+2 |
| | |||||
* | File 'bugs' no longer tracked by git | Roberto Ierusalimschy | 2019-11-25 | 1 | -4133/+0 |
| | | | | | | | The file 'bugs' reports bugs in several different versions (corresponding to different branches in the repository), without a clear division of "this bugs belongs to this version". So, it doesn't make sense to track it along with one (or many) versions. | ||||
* | More generic pattern when testing 'string.format' | Roberto Ierusalimschy | 2019-11-22 | 1 | -2/+2 |
| | | | | | The result of 'string.format("%a", 0.0)' can have multiple zeros after the dot. | ||||
* | Fixed bug in 'lua_upvaluejoin' | Roberto Ierusalimschy | 2019-03-27 | 3 | -39/+41 |
| | | | | | Bug-fix: joining an upvalue with itself could cause a use-after-free crash. | ||||
* | File 'bugs' updated to version 5.3.5 | Roberto Ierusalimschy | 2018-12-17 | 1 | -2/+404 |
| | |||||
* | Bug: Long brackets with a huge number of '=' causes overflow | Roberto Ierusalimschy | 2018-12-17 | 1 | -14/+17 |
| | | | | | | | A long bracket with too many equal signs can overflow the 'int' used for the counting and some arithmetic done on the value. Changing the counter to 'size_t' avoids that. (Because what is counted goes to a buffer, an overflow in the counter will first raise a buffer-overflow error.) | ||||
* | Lua 5.3.5 ported to gitv5.3.5 | Roberto Ierusalimschy | 2018-12-17 | 99 | -87/+21665 |
| | | | | | | | This is the first commit for the branch Lua 5.3. All source files were copied from the official distribution of 5.3.5 in the Lua site. The test files are the same of 5.3.4. The manual came from the previous RCS repository, revision 1.167.1.2. | ||||
* | small updatesv5.3.4 | Roberto Ierusalimschy | 2017-01-31 | 1 | -7/+10 |
| | |||||
* | Handling of LUA_PATH/LUA_CPATH moved back to 'package' library | Roberto Ierusalimschy | 2017-01-12 | 3 | -94/+101 |
| | | | | to avoid incompatibilites with previous releases | ||||
* | release 5.3.4 (year 2017) | Roberto Ierusalimschy | 2016-12-22 | 1 | -4/+4 |
| | |||||
* | detail (removing spaces at end of lines) | Roberto Ierusalimschy | 2016-12-22 | 12 | -30/+30 |
| | |||||
* | Using LUAI_UAC* types more consistently on vararg calls | Roberto Ierusalimschy | 2016-12-20 | 5 | -24/+35 |
| | |||||
* | 'moveresults' and 'luaD_poscall' moved up in the file | Roberto Ierusalimschy | 2016-12-13 | 1 | -67/+67 |
| | |||||
* | LUA_PATHSUFFIX -> LUA_VERSUFFIX + LUA_VERSUFFIX used in the | Roberto Ierusalimschy | 2016-12-13 | 1 | -7/+7 |
| | | | | definition of LUA_INITVARVERSION, too. | ||||
* | detail (wrong comment) | Roberto Ierusalimschy | 2016-12-06 | 1 | -2/+2 |
| | |||||
* | using constants for "_LOADED" and "PRELOAD" | Roberto Ierusalimschy | 2016-12-04 | 5 | -27/+34 |
| | |||||
* | 'luaL_tolstring' uses metatable's "__name" when available | Roberto Ierusalimschy | 2016-12-04 | 1 | -5/+14 |
| | |||||
* | using 'lastfree == NULL' to signal that table is using the dummy | Roberto Ierusalimschy | 2016-11-07 | 4 | -30/+38 |
| | | | | node for its hash part + new macro 'allocsizenode' | ||||
* | bug: When a coroutine tries to resume a non-suspended coroutine, | Roberto Ierusalimschy | 2016-10-19 | 1 | -2/+28 |
| | | | | it can do some mess (and break C assertions) before detecting the error. | ||||
* | check whether function is finalizer when finding a name for it + | Roberto Ierusalimschy | 2016-10-19 | 1 | -13/+32 |
| | | | | | comments + some instructions can call functions in unespected ways (e.g., finalizers) | ||||
* | new flag in 'CallInfo.callstatus' to tell whether function is running | Roberto Ierusalimschy | 2016-10-19 | 2 | -2/+5 |
| | | | | as a finalizer | ||||
* | detail (ANSI C does not accept empty arguments to macros) | Roberto Ierusalimschy | 2016-09-20 | 1 | -3/+3 |
| | |||||
* | cleaner and more correct code for 'luaD_shrinkstack' (the old | Roberto Ierusalimschy | 2016-09-08 | 1 | -5/+8 |
| | | | | | test "inuse <= LUAI_MAXSTACK" for stack overflow is not correct, as the real maximum usable size is "LUAI_MAXSTACK - EXTRA_STACK") | ||||
* | bug (with compat on): 'ipairs' can work with any type that provides | Roberto Ierusalimschy | 2016-09-05 | 1 | -2/+2 |
| | | | | | an __index; so, 'pairsmeta' should not check for tables. ('pairs' already checks for tables through 'next'.) | ||||
* | comments + removed unused variable | Roberto Ierusalimschy | 2016-09-05 | 1 | -10/+6 |
| | |||||
* | detail (macro 'l_checkmode' reimplemented as function) | Roberto Ierusalimschy | 2016-09-01 | 1 | -5/+6 |
| | |||||
* | wrong test in '#if' for floating-point type | Roberto Ierusalimschy | 2016-08-22 | 1 | -3/+3 |
| | |||||
* | do not eliminate varargs from functions that do not use varargs | Roberto Ierusalimschy | 2016-08-01 | 3 | -10/+9 |
| | | | | (confuses the debug lib and gains very little in performance) | ||||
* | bug: When a coroutine tries to resume a non-suspended coroutine, | Roberto Ierusalimschy | 2016-07-29 | 1 | -16/+19 |
| | | | | | it coud do some mess (and break C assertions) before detecting the error. Now it tests for those errors before anything else. | ||||
* | redefine MAXINDEXRK (for debugging, to force most values to | Roberto Ierusalimschy | 2016-07-19 | 1 | -2/+5 |
| | | | | go through registers) | ||||
* | MAXINDEXRK can be redefined (for debugging, to force most values to | Roberto Ierusalimschy | 2016-07-19 | 1 | -1/+3 |
| | | | | go through registers) | ||||
* | bug: Lua can generate wrong code in functions with too many constants | Roberto Ierusalimschy | 2016-07-19 | 2 | -5/+32 |
| | |||||
* | bug: 'checkoption' could read past end of string + 'os.date' can | Roberto Ierusalimschy | 2016-07-18 | 1 | -12/+16 |
| | | | | handle embedded zeros | ||||
* | Handling of LUA_PATH/LUA_CPATH moved from package library to stand | Roberto Ierusalimschy | 2016-07-18 | 3 | -95/+109 |
| | | | | | alone interpreter (so that 'lua.c' concentrates all handling of environment variables) | ||||
* | new bug: Checking a format for 'os.date' may read pass the format string | Roberto Ierusalimschy | 2016-07-15 | 1 | -0/+23 |
| | |||||
* | small corrections for C++ compliance | Roberto Ierusalimschy | 2016-06-27 | 2 | -4/+4 |
| | |||||
* | bug: expression list with four or more expressions in | Roberto Ierusalimschy | 2016-06-22 | 1 | -5/+4 |
| | | | | | a 'for' loop can crash the interpreter. ('adjust_assign' must remove extra expresssions from its registers.) | ||||
* | bug: expression list with four or more expressions in | Roberto Ierusalimschy | 2016-06-21 | 1 | -0/+39 |
| | | | | a 'for' loop can crash the interpreter. | ||||
* | all 'static' variables should be 'const' | Roberto Ierusalimschy | 2016-06-20 | 1 | -5/+6 |
| | |||||
* | allow more bits in 'callstatus' (use no extra space due to alignments) | Roberto Ierusalimschy | 2016-06-16 | 1 | -2/+2 |
| | |||||
* | 'lua_pushglobaltable' returns 'void'v5.3.3 | Roberto Ierusalimschy | 2016-05-30 | 1 | -2/+2 |
| | |||||
* | 'string.format("%q")' writes 'math.mininteger' in hexa, to ensure | Roberto Ierusalimschy | 2016-05-20 | 1 | -14/+19 |
| | | | | it is read back as an integer |