aboutsummaryrefslogtreecommitdiff
path: root/contrib/lua
Commit message (Collapse)AuthorAgeFilesLines
* lua: Merge lua 5.4.8Warner Losh2025-08-2336-327/+474
| | | | | | | | | | | | | | Pick up a few bug fixes from lua 5.4.8: 267ef461 Bug: check for constructor overflow in [exp] fields d1ee2a4d Bug: Bad error message with fields of string _ENV 3fe7be95 Bug: message handler can be overwritten 983bc433 Bug: Use after free in 'luaV_finishset' 25da574f Bug: 'luaD_seterrorobj' should not raise errors f5e55be2 Bug: Missing error status in panic function 9f0c0fe0 Bug: Wrong limit for local variables in 16-bit systems 782ef85b Bug: wrong code gen. for indices with comparisons 30982bec Bug: Bad stack manipulation in 'multiline' (REPL)
* Merge LUA 5.4.6Warner Losh2023-07-1549-866/+3355
| | | | | This is a bug fix to Lua 5.4.4 (5.4.5 was withdrawn due to ABI issues and 5.4.6 is 5.4.5 with those fixed).
* lua: Update to 5.4.4Warner Losh2023-02-0850-1070/+2524
| | | | | | | | | | | | | | | Merge commit '755d9301ca89f02956fd17858b9d4d821ab5c972' from the vendor branch. This updates us from lua 5.4.2 to 5.4.4. In addition, it switches around how we flavor liblua for the boot loader and flua. This is done to reduce diffs with upstream and make it easier to import new versions (the current method has too many conflicts to resolve by hand): we include luaconf.local.h from luaconf.h (the only change to this file is now that #include at the end). We then define what we need to: for flua (which does very little) and one for stand (which creates the new FLOAT type out of int64). Sponsored by: Netflix
* contrib/lua: update to 5.4.2Kyle Evans2021-01-1469-6807/+12727
| | | | Merge commit '0ea45b9cd43ce1247eb3eee9bfd5cee3d19068e7' into main
* MFC r366760: lua: update to 5.3.6Kyle Evans2020-10-1616-52/+104
| | | | | | | | | | | | | | | This release contains some minor bugfixes; notably: - 2x minor Makefile fixes (not used in base) - Long brackets with a huge number of '=' overflow some internal buffer arithmetic. - Joining an upvalue with itself can cause a use-after-free crash. See here for examples: http://www.lua.org/bugs.html#5.3.5 MFC after: 2 weeks Notes: svn path=/head/; revision=366769
* Fix -Wundef warnings when building libluaAlex Richardson2020-08-251-1/+9
| | | | | | | | | | | | We need to define the LUA_FLOAT_INT64 macro even if we don't use it (copied from stand/luaconf.h). While touching luaconf.h.dist also sync it with the the 5.3.5 release version (matches the one in lib/liblua). Reviewed By: kevans Differential Revision: https://reviews.freebsd.org/D25977 Notes: svn path=/head/; revision=364767
* MFV r337586: lua: Update to 5.3.5Kyle Evans2018-08-1465-165/+208
| | | | | | | | | | Bugfix release, nothing too major. Tested with: lualoader via userboot, lualoader live Differential Revision: https://reviews.freebsd.org/D16665 Notes: svn path=/head/; revision=337810
* When the LUA floating point model is INT64, we don't need to do theWarner Losh2018-08-141-1/+1
| | | | | | | | | | overflow dance. This avoids compile errors on latter-day gcc compilers as well as simplifies the generated code. Reviewed by: kevans@ Notes: svn path=/head/; revision=337808
* Prevent a wanring about checkdp being unused. It's not needed when weWarner Losh2018-08-141-1/+2
| | | | | | | | | have INT64 floats and somehow snuck through unused until now. Reviewed by: kevans@ Notes: svn path=/head/; revision=337807
* When the LUA_FLOAT_TYPE != LUA_FLOAT_INT64, we can't reference floatWarner Losh2018-02-232-1/+19
| | | | | | | | | | | | or double so ifdef that code out when the numbers aren't float at all. There's still references in the lmathlib.c, but we don't compile that for the loader yet. Differential Revision: https://reviews.freebsd.org/D14472 Notes: svn path=/head/; revision=329858
* Gross hack to omit printing hex floating point when the lua numberWarner Losh2018-01-261-0/+4
| | | | | | | | | type is int64. While lua is setup for the representation, it's not setup to properly print the numbers as ints. This is the least-gross way around that, and won't affect the bootloader where we do this. Notes: svn path=/head/; revision=328443
* Preserve the original luaconf.h in a convenient place. Clients willWarner Losh2018-01-261-0/+0
| | | | | | | | almost certainly need to override this, so reinforce that. If that's not hte case, clients can always do a #include luaconf.h.dist. Notes: svn path=/head/; revision=328440
* Import lua 5.3.4 to contribWarner Losh2017-11-2974-0/+36828
Notes: svn path=/head/; revision=326353