aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix minilua undefined behavior in bit.tohex.v2.0masterMike Pall2 days2-4/+4
| | | | | | | | | | | | Note: this is not a vulnerability! minilua is only used during the LuaJIT build process. It only runs controlled and static Lua code (DynASM), which is entirely contained within this repo and does not trigger the undefined behavior. This change is solely for the benefit of others, who might possibly use minilua for purposes other than running DynASM. Reported by quart27219. #1424
* Ignore PDB files for git.Mike Pall2 days1-0/+1
| | | | Thanks to Michael Fisher. #1423
* Bump copyright date.Mike Pall2 days175-190/+190
|
* DUALNUM: Add missing type conversion for FORI slots.Mike Pall2025-12-061-8/+17
| | | | Reported by Sergey Kaplun. #1413
* x86/x64: Backport fix for math.min()/math.max() argument check.Mike Pall2025-11-161-1/+1
| | | | Reported by puffy.
* Fix edge cases when generating IR for string.byte/sub/find.Mike Pall2025-11-141-3/+3
| | | | Contributed by XmiliaH. #1407
* FFI: Avoid dangling cts->L.Mike Pall2025-11-101-0/+4
| | | | Reported by ZumiKua. #1405
* x86/x64: Don't use undefined MUL/IMUL zero flag.Mike Pall2025-07-241-1/+2
| | | | Reported by VrIgHtEr. #1376
* Avoid out-of-range PC for stack overflow error from snapshot restore.Mike Pall2025-07-241-0/+1
| | | | Reported by Sergey Kaplun. #1369
* FFI: Fix dangling CType references (again).Mike Pall2025-07-241-5/+6
| | | | Reported by Sergey Kaplun. Collateral of #1360
* Fix JIT slot overflow during up-recursion.Mike Pall2025-05-281-1/+2
| | | | Reported by Sergey Kaplun. #1358
* Avoid out-of-range PC for stack overflow error from snapshot restore.Mike Pall2025-05-283-15/+10
| | | | Reported by Sergey Kaplun. #1359
* FFI: Fix dangling CType references.Mike Pall2025-05-282-15/+25
| | | | Reported by Sergey Kaplun. Collateral of #1360
* Fix error generation in load*.Mike Pall2025-04-071-1/+2
| | | | Reported by Sergey Kaplun. #1353
* Initialize unused value when specializing to cdata metatable.Mike Pall2025-04-071-1/+4
| | | | Reported by jakitliang. #1354
* Avoid unpatching bytecode twice after a trace flush.Mike Pall2025-03-091-11/+4
| | | | Reported by Sergey Kaplun. #1345
* Add compatibility string coercion for fp:seek() argument.Mike Pall2025-03-092-2/+4
| | | | Reported by Magnus Wibeck. #1343
* Fix recording of BC_VARG.Mike Pall2025-01-131-1/+1
| | | | Reported by Bachir Bendrissou.
* Reject negative getfenv()/setfenv() levels to prevent compiler warning.Mike Pall2025-01-131-0/+4
| | | | Thanks to Sergey Kaplun. #1329
* Bump copyright date.Mike Pall2025-01-13175-190/+190
|
* Force fallback source name for stripped bytecode.Mike Pall2024-12-161-1/+1
| | | | Reported by Lyrth. #1319
* Fix detection of inconsistent renames due to sunk values.Mike Pall2024-11-281-2/+2
| | | | Thanks to Sergey Kaplun. #1295 #584
* Fix compiliation of getmetatable() for UDTYPE_IO_FILE.Mike Pall2024-09-291-3/+3
| | | | Reported by Sergey Bronnikov. #1279
* Remove ancient RtlUnwindEx workaround for MinGW64.Mike Pall2024-09-291-6/+0
| | | | Thanks to Kacper Michajłow. #1272
* Fix limit check in narrow_conv_backprop().Mike Pall2024-08-241-1/+2
| | | | Thanks to Sergey Kaplun. #1262
* Always use IRT_NIL for IR_TBAR.Mike Pall2024-08-241-1/+1
| | | | Thanks to Peter Cawley. #1258
* ARM: Make hard-float tobit conversions match JIT backend behavior.Mike Pall2024-08-201-1/+12
| | | | Reported by Peter Cawley. #1253
* Fix another potential file descriptor leak in luaL_loadfile*().Mike Pall2024-08-191-8/+8
| | | | Reported by Peter Cawley. #1249
* MIPS32: Fix little-endian IR_RETF.Mike Pall2024-08-191-1/+1
| | | | Thanks to Peter Cawley. #1250
* Correctly close VM state after early OOM during open.Mike Pall2024-08-191-3/+2
| | | | Reported by Assumeru. #1248
* Fix potential file descriptor leak in luaL_loadfile*().Mike Pall2024-08-191-1/+2
| | | | Reported by Assumeru. #1249
* Different fix for partial snapshot restore due to stack overflow.Mike Pall2024-08-152-4/+3
| | | | Reported by Junlong Li. Fixed by Peter Cawley. #1196
* Fix IR_ABC hoisting.Mike Pall2024-08-152-4/+6
| | | | Reported by pwnhacker0x18. Fixed by Peter Cawley. #1194
* Limit CSE for IR_CARG to fix loop optimizations.Mike Pall2024-08-151-0/+11
| | | | Thanks to Peter Cawley. #1244
* FFI: Fix various issues in recff_cdata_arith.Mike Pall2024-07-031-4/+6
| | | | Thanks to Sergey Kaplun. #1224
* Fix predict_next() in parser (for real now).Mike Pall2024-07-031-4/+2
| | | | Reported by Sergey Kaplun. #1226 #1054
* FFI: Fix __tostring metamethod access to enum cdata value.Mike Pall2024-07-031-1/+1
| | | | Thanks to Sergey Kaplun. #1232
* Fix typo.Mike Pall2024-07-031-1/+1
| | | | Reported by Sergey Bronnikov. #1223
* Handle partial snapshot restore due to stack overflow.Mike Pall2024-07-032-4/+9
| | | | Reported by pwnhacker0x18. Fixed by Peter Cawley. #1196
* Prevent sanitizer warning in snap_restoredata().Mike Pall2024-05-251-2/+4
| | | | Thanks to Sergey Kaplun. #1193
* Fix segment release check in internal memory allocator.Mike Pall2024-04-191-1/+1
| | | | Thanks to Jinji Zeng. #1179 #1157
* Prevent down-recursion for side traces.Mike Pall2024-03-101-1/+1
| | | | Thanks to Sergey Kaplun. #1169
* Check frame size limit before returning to a lower frame.Mike Pall2024-03-101-0/+2
| | | | Thanks to Sergey Kaplun. #1173
* FFI: Treat cdata finalizer table as a GC root.Mike Pall2024-03-101-0/+3
| | | | Thanks to Sergey Bronnikov. #1168
* Handle stack reallocation in debug.setmetatable() and lua_setmetatable().Mike Pall2024-03-101-0/+1
| | | | Thanks to Sergey Kaplun. #1172
* Rework stack overflow handling.Mike Pall2024-02-044-21/+57
| | | | Reported by pwnhacker0x18. Fixed by Peter Cawley. #1152
* Preserve keys with dynamic values in template tables when saving bytecode.Mike Pall2024-01-311-2/+2
| | | | Reported by Lyrthras. Fixed by Peter Cawley. #1155
* Prevent include of luajit_rolling.h.Mike Pall2024-01-312-1/+2
| | | | Thanks to Peter Cawley. #1145
* Fix documentation bug about '\z' string escape.Mike Pall2024-01-261-1/+1
|
* Fix unsinking of IR_FSTORE for NULL metatable.Mike Pall2024-01-231-3/+8
| | | | Reported by pwnhacker0x18. #1147