summaryrefslogtreecommitdiff
path: root/contrib/lua/src
AgeCommit message (Collapse)Author
2025-08-23lua: Merge lua 5.4.8Warner Losh
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)
2023-07-15Merge LUA 5.4.6Warner Losh
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).
2023-02-08lua: Update to 5.4.4Warner Losh
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
2021-01-13contrib/lua: update to 5.4.2Kyle Evans
Merge commit '0ea45b9cd43ce1247eb3eee9bfd5cee3d19068e7' into main
2020-10-16MFC r366760: lua: update to 5.3.6Kyle Evans
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
2020-08-25Fix -Wundef warnings when building libluaAlex Richardson
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
2018-08-14MFV r337586: lua: Update to 5.3.5Kyle Evans
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
2018-08-14When the LUA floating point model is INT64, we don't need to do theWarner Losh
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
2018-08-14Prevent a wanring about checkdp being unused. It's not needed when weWarner Losh
have INT64 floats and somehow snuck through unused until now. Reviewed by: kevans@ Notes: svn path=/head/; revision=337807
2018-02-23When the LUA_FLOAT_TYPE != LUA_FLOAT_INT64, we can't reference floatWarner Losh
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
2018-01-26Gross hack to omit printing hex floating point when the lua numberWarner Losh
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
2018-01-26Preserve the original luaconf.h in a convenient place. Clients willWarner Losh
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
2017-11-29Import lua 5.3.4 to contribWarner Losh
Notes: svn path=/head/; revision=326353