summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug of long strings in binary chunksv5.3.6v5.3Roberto Ierusalimschy2020-08-182-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 repositoryRoberto Ierusalimschy2020-08-121-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 blockRoberto Ierusalimschy2020-08-121-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/setlocalRoberto Ierusalimschy2020-08-031-3/+4
|
* Fixed bug: invalid mode can crash 'io.popen'Roberto Ierusalimschy2020-07-201-0/+2
|
* Updated release number and copyright yearRoberto Ierusalimschy2020-07-141-4/+3
|
* Added .gitignoreRoberto Ierusalimschy2020-07-131-0/+13
|
* Fixed missing GC barriers in compiler and undumpRoberto Ierusalimschy2020-06-182-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 commentsRoberto Ierusalimschy2019-12-272-2/+2
|
* File 'bugs' no longer tracked by gitRoberto Ierusalimschy2019-11-251-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 Ierusalimschy2019-11-221-2/+2
| | | | | The result of 'string.format("%a", 0.0)' can have multiple zeros after the dot.
* Fixed bug in 'lua_upvaluejoin'Roberto Ierusalimschy2019-03-273-39/+41
| | | | | Bug-fix: joining an upvalue with itself could cause a use-after-free crash.
* File 'bugs' updated to version 5.3.5Roberto Ierusalimschy2018-12-171-2/+404
|
* Bug: Long brackets with a huge number of '=' causes overflowRoberto Ierusalimschy2018-12-171-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.5Roberto Ierusalimschy2018-12-1799-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.4Roberto Ierusalimschy2017-01-311-7/+10
|
* Handling of LUA_PATH/LUA_CPATH moved back to 'package' libraryRoberto Ierusalimschy2017-01-123-94/+101
| | | | to avoid incompatibilites with previous releases
* release 5.3.4 (year 2017)Roberto Ierusalimschy2016-12-221-4/+4
|
* detail (removing spaces at end of lines)Roberto Ierusalimschy2016-12-2212-30/+30
|
* Using LUAI_UAC* types more consistently on vararg callsRoberto Ierusalimschy2016-12-205-24/+35
|
* 'moveresults' and 'luaD_poscall' moved up in the fileRoberto Ierusalimschy2016-12-131-67/+67
|
* LUA_PATHSUFFIX -> LUA_VERSUFFIX + LUA_VERSUFFIX used in theRoberto Ierusalimschy2016-12-131-7/+7
| | | | definition of LUA_INITVARVERSION, too.
* detail (wrong comment)Roberto Ierusalimschy2016-12-061-2/+2
|
* using constants for "_LOADED" and "PRELOAD"Roberto Ierusalimschy2016-12-045-27/+34
|
* 'luaL_tolstring' uses metatable's "__name" when availableRoberto Ierusalimschy2016-12-041-5/+14
|
* using 'lastfree == NULL' to signal that table is using the dummyRoberto Ierusalimschy2016-11-074-30/+38
| | | | node for its hash part + new macro 'allocsizenode'
* bug: When a coroutine tries to resume a non-suspended coroutine,Roberto Ierusalimschy2016-10-191-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 Ierusalimschy2016-10-191-13/+32
| | | | | comments + some instructions can call functions in unespected ways (e.g., finalizers)
* new flag in 'CallInfo.callstatus' to tell whether function is runningRoberto Ierusalimschy2016-10-192-2/+5
| | | | as a finalizer
* detail (ANSI C does not accept empty arguments to macros)Roberto Ierusalimschy2016-09-201-3/+3
|
* cleaner and more correct code for 'luaD_shrinkstack' (the oldRoberto Ierusalimschy2016-09-081-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 providesRoberto Ierusalimschy2016-09-051-2/+2
| | | | | an __index; so, 'pairsmeta' should not check for tables. ('pairs' already checks for tables through 'next'.)
* comments + removed unused variableRoberto Ierusalimschy2016-09-051-10/+6
|
* detail (macro 'l_checkmode' reimplemented as function)Roberto Ierusalimschy2016-09-011-5/+6
|
* wrong test in '#if' for floating-point typeRoberto Ierusalimschy2016-08-221-3/+3
|
* do not eliminate varargs from functions that do not use varargsRoberto Ierusalimschy2016-08-013-10/+9
| | | | (confuses the debug lib and gains very little in performance)
* bug: When a coroutine tries to resume a non-suspended coroutine,Roberto Ierusalimschy2016-07-291-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 toRoberto Ierusalimschy2016-07-191-2/+5
| | | | go through registers)
* MAXINDEXRK can be redefined (for debugging, to force most values toRoberto Ierusalimschy2016-07-191-1/+3
| | | | go through registers)
* bug: Lua can generate wrong code in functions with too many constantsRoberto Ierusalimschy2016-07-192-5/+32
|
* bug: 'checkoption' could read past end of string + 'os.date' canRoberto Ierusalimschy2016-07-181-12/+16
| | | | handle embedded zeros
* Handling of LUA_PATH/LUA_CPATH moved from package library to standRoberto Ierusalimschy2016-07-183-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 stringRoberto Ierusalimschy2016-07-151-0/+23
|
* small corrections for C++ complianceRoberto Ierusalimschy2016-06-272-4/+4
|
* bug: expression list with four or more expressions inRoberto Ierusalimschy2016-06-221-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 inRoberto Ierusalimschy2016-06-211-0/+39
| | | | a 'for' loop can crash the interpreter.
* all 'static' variables should be 'const'Roberto Ierusalimschy2016-06-201-5/+6
|
* allow more bits in 'callstatus' (use no extra space due to alignments)Roberto Ierusalimschy2016-06-161-2/+2
|
* 'lua_pushglobaltable' returns 'void'v5.3.3Roberto Ierusalimschy2016-05-301-2/+2
|
* 'string.format("%q")' writes 'math.mininteger' in hexa, to ensureRoberto Ierusalimschy2016-05-201-14/+19
| | | | it is read back as an integer