aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
4 daysFix minilua undefined behavior in bit.tohex.v2.0masterMike Pall2-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
4 daysIgnore PDB files for git.Mike Pall1-0/+1
Thanks to Michael Fisher. #1423
4 daysBump copyright date.Mike Pall175-190/+190
2025-12-06DUALNUM: Add missing type conversion for FORI slots.Mike Pall1-8/+17
Reported by Sergey Kaplun. #1413
2025-11-16x86/x64: Backport fix for math.min()/math.max() argument check.Mike Pall1-1/+1
Reported by puffy.
2025-11-14Fix edge cases when generating IR for string.byte/sub/find.Mike Pall1-3/+3
Contributed by XmiliaH. #1407
2025-11-10FFI: Avoid dangling cts->L.Mike Pall1-0/+4
Reported by ZumiKua. #1405
2025-07-24x86/x64: Don't use undefined MUL/IMUL zero flag.Mike Pall1-1/+2
Reported by VrIgHtEr. #1376
2025-07-24Avoid out-of-range PC for stack overflow error from snapshot restore.Mike Pall1-0/+1
Reported by Sergey Kaplun. #1369
2025-07-24FFI: Fix dangling CType references (again).Mike Pall1-5/+6
Reported by Sergey Kaplun. Collateral of #1360
2025-05-28Fix JIT slot overflow during up-recursion.Mike Pall1-1/+2
Reported by Sergey Kaplun. #1358
2025-05-28Avoid out-of-range PC for stack overflow error from snapshot restore.Mike Pall3-15/+10
Reported by Sergey Kaplun. #1359
2025-05-28FFI: Fix dangling CType references.Mike Pall2-15/+25
Reported by Sergey Kaplun. Collateral of #1360
2025-04-07Fix error generation in load*.Mike Pall1-1/+2
Reported by Sergey Kaplun. #1353
2025-04-07Initialize unused value when specializing to cdata metatable.Mike Pall1-1/+4
Reported by jakitliang. #1354
2025-03-09Avoid unpatching bytecode twice after a trace flush.Mike Pall1-11/+4
Reported by Sergey Kaplun. #1345
2025-03-09Add compatibility string coercion for fp:seek() argument.Mike Pall2-2/+4
Reported by Magnus Wibeck. #1343
2025-01-13Fix recording of BC_VARG.Mike Pall1-1/+1
Reported by Bachir Bendrissou.
2025-01-13Reject negative getfenv()/setfenv() levels to prevent compiler warning.Mike Pall1-0/+4
Thanks to Sergey Kaplun. #1329
2025-01-13Bump copyright date.Mike Pall175-190/+190
2024-12-16Force fallback source name for stripped bytecode.Mike Pall1-1/+1
Reported by Lyrth. #1319
2024-11-28Fix detection of inconsistent renames due to sunk values.Mike Pall1-2/+2
Thanks to Sergey Kaplun. #1295 #584
2024-09-29Fix compiliation of getmetatable() for UDTYPE_IO_FILE.Mike Pall1-3/+3
Reported by Sergey Bronnikov. #1279
2024-09-29Remove ancient RtlUnwindEx workaround for MinGW64.Mike Pall1-6/+0
Thanks to Kacper Michajłow. #1272
2024-08-24Fix limit check in narrow_conv_backprop().Mike Pall1-1/+2
Thanks to Sergey Kaplun. #1262
2024-08-24Always use IRT_NIL for IR_TBAR.Mike Pall1-1/+1
Thanks to Peter Cawley. #1258
2024-08-20ARM: Make hard-float tobit conversions match JIT backend behavior.Mike Pall1-1/+12
Reported by Peter Cawley. #1253
2024-08-19Fix another potential file descriptor leak in luaL_loadfile*().Mike Pall1-8/+8
Reported by Peter Cawley. #1249
2024-08-19MIPS32: Fix little-endian IR_RETF.Mike Pall1-1/+1
Thanks to Peter Cawley. #1250
2024-08-19Correctly close VM state after early OOM during open.Mike Pall1-3/+2
Reported by Assumeru. #1248
2024-08-19Fix potential file descriptor leak in luaL_loadfile*().Mike Pall1-1/+2
Reported by Assumeru. #1249
2024-08-15Different fix for partial snapshot restore due to stack overflow.Mike Pall2-4/+3
Reported by Junlong Li. Fixed by Peter Cawley. #1196
2024-08-15Fix IR_ABC hoisting.Mike Pall2-4/+6
Reported by pwnhacker0x18. Fixed by Peter Cawley. #1194
2024-08-15Limit CSE for IR_CARG to fix loop optimizations.Mike Pall1-0/+11
Thanks to Peter Cawley. #1244
2024-07-03FFI: Fix various issues in recff_cdata_arith.Mike Pall1-4/+6
Thanks to Sergey Kaplun. #1224
2024-07-03Fix predict_next() in parser (for real now).Mike Pall1-4/+2
Reported by Sergey Kaplun. #1226 #1054
2024-07-03FFI: Fix __tostring metamethod access to enum cdata value.Mike Pall1-1/+1
Thanks to Sergey Kaplun. #1232
2024-07-03Fix typo.Mike Pall1-1/+1
Reported by Sergey Bronnikov. #1223
2024-07-03Handle partial snapshot restore due to stack overflow.Mike Pall2-4/+9
Reported by pwnhacker0x18. Fixed by Peter Cawley. #1196
2024-05-25Prevent sanitizer warning in snap_restoredata().Mike Pall1-2/+4
Thanks to Sergey Kaplun. #1193
2024-04-19Fix segment release check in internal memory allocator.Mike Pall1-1/+1
Thanks to Jinji Zeng. #1179 #1157
2024-03-10Prevent down-recursion for side traces.Mike Pall1-1/+1
Thanks to Sergey Kaplun. #1169
2024-03-10Check frame size limit before returning to a lower frame.Mike Pall1-0/+2
Thanks to Sergey Kaplun. #1173
2024-03-10FFI: Treat cdata finalizer table as a GC root.Mike Pall1-0/+3
Thanks to Sergey Bronnikov. #1168
2024-03-10Handle stack reallocation in debug.setmetatable() and lua_setmetatable().Mike Pall1-0/+1
Thanks to Sergey Kaplun. #1172
2024-02-04Rework stack overflow handling.Mike Pall4-21/+57
Reported by pwnhacker0x18. Fixed by Peter Cawley. #1152
2024-01-31Preserve keys with dynamic values in template tables when saving bytecode.Mike Pall1-2/+2
Reported by Lyrthras. Fixed by Peter Cawley. #1155
2024-01-31Prevent include of luajit_rolling.h.Mike Pall2-1/+2
Thanks to Peter Cawley. #1145
2024-01-26Fix documentation bug about '\z' string escape.Mike Pall1-1/+1
2024-01-23Fix unsinking of IR_FSTORE for NULL metatable.Mike Pall1-3/+8
Reported by pwnhacker0x18. #1147