aboutsummaryrefslogtreecommitdiff
path: root/src/lj_carith.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-08-20ARM64: Make tobit conversions match JIT backend behavior.Mike Pall1-14/+6
Thanks to Peter Cawley. #1253
2024-08-20ARM: Make hard-float tobit conversions match JIT backend behavior.Mike Pall1-1/+12
Reported by Peter Cawley. #1253
2024-08-19FFI: Drop finalizer table rehash after GC cycle.Mike Pall2-8/+1
Reported by Sergey Kaplun. #1247
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-15Reflect override of INSTALL_LJLIBD in package.path.Mike Pall3-3/+9
Suggested by GitSparTV. #1239
2024-08-15ARM64: Use movi to materialize FP constants.Mike Pall3-0/+35
Thanks to Peter Cawley. #1245
2024-08-15Add more FOLD rules for integer conversions.Mike Pall1-4/+5
Thanks to Peter Cawley. #1246
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-04Call math.randomseed() without arguments to seed from system entropy.Mike Pall4-3/+13
Reminder: the math.random() PRNG is NOT SUITABLE FOR CRYPTOGRAPHIC USE.
2024-07-04Restore state when recording __concat metamethod throws an error.Mike Pall1-2/+24
Thanks to Sergey Kaplun. #1234
2024-07-04Add build flag LUAJIT_DISABLE_TAILCALL to disable tailcall generation.Mike Pall1-0/+4
Only use this for debugging purposes. NEVER set it for regular builds or distro builds! In Lua, tailcalls are a language guarantee. Suggested by Steve Vermeulen. #1220
2024-07-04Clarify that lj_buf_shrink() does not keep any buffer data.Mike Pall1-3/+1
https://www.freelists.org/post/luajit/lj-buf-shrink-may-truncate-the-data-and-sbw-point-over-the-end-of-the-buffer,1 Thanks to Junlong li.
2024-07-03OSX: Fix installed luajit.pc.Mike Pall1-0/+1
Reported by leleliu008. #1221
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-25Update Nintendo Switch build script.Mike Pall1-6/+7
Thanks to IoriBranford. #1214
2024-05-25Prevent sanitizer warning in snap_restoredata().Mike Pall1-2/+4
Thanks to Sergey Kaplun. #1193
2024-05-25Typo.Mike Pall1-2/+2
2024-05-25Limit number of string format elements to compile.Mike Pall1-0/+2
Reported by pwnhacker0x18. #1203
2024-05-25FFI: Clarify scalar boxing behavior.Mike Pall1-0/+13
Prevent misunderstandings like in #1216
2024-05-25Fix internal link in docs.Mike Pall1-1/+1
Thanks to GitSparTV. #1219
2024-04-22OSX/iOS: Fix SDK incompatibility.Mike Pall1-1/+1
Thanks to Ryan Carsten Schmidt. #1189
2024-04-19Windows/MSVC: Cleanup msvcbuild.bat and always generate PDB.Mike Pall1-8/+12
Thanks to Miku AuahDark. #1127
2024-04-19Fix segment release check in internal memory allocator.Mike Pall1-1/+1
Thanks to Jinji Zeng. #1179 #1157
2024-04-19Fix compiler warning.Mike Pall1-1/+1
2024-04-19FFI: Turn FFI finalizer table into a proper GC root.Mike Pall7-44/+39
Reported by Sergey Bronnikov. #1168
2024-04-19OSX/iOS: Always generate 64 bit non-FAT Mach-O object files.Mike Pall1-121/+34
Reported by Sergey Bronnikov. #1181
2024-04-19Show name of NYI bytecode in -jv and -jdump.Mike Pall3-4/+14
Suggested by Sergey Kaplun. #1176 #567
2024-04-18Use generic trace error for OOM during trace stitching.Mike Pall1-0/+2
Thanks to Sergey Kaplun. #1166
2024-04-18Fix serialization format docs.Mike Pall1-2/+2
Reported by nounwind.
2024-03-10Handle all types of errors during trace stitching.Mike Pall1-5/+16
Thanks to Sergey Kaplun and Peter Cawley. #1166 #720
2024-03-10Fix recording of __concat metamethod.Mike Pall1-2/+6
Thanks to Sergey Kaplun. #1164
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-25Fix zero stripping in %g number formatting.Mike Pall1-1/+2
Reported by pwnhacker0x18. #1149
2024-01-23Fix unsinking of IR_FSTORE for NULL metatable.Mike Pall1-3/+8
Reported by pwnhacker0x18. #1147