summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix TDUP load forwarding after table rehash.HEADv2.0masterMike Pall2023-04-161-0/+6
| | | | Reported by Sergey Kaplun. #980
* Fix canonicalization of +-0.0 keys for IR_NEWREF.Mike Pall2023-04-161-0/+2
| | | | Reported by Sergey Kaplun. #981
* Improve error reporting on stack overflow.Mike Pall2023-02-211-1/+1
| | | | Thanks to Nicolas Lebedenco.
* Allow building sources with mixed LF/CRLF line-endings.Mike Pall2023-02-211-4/+10
| | | | Reported by mgood7123.
* Avoid negation of signed integers in C that may hold INT*_MIN.Mike Pall2022-12-2212-32/+32
| | | | | | Reported by minoki. Recent C compilers 'take advantage' of the undefined behavior. This completely changes the meaning of expressions like (k == -k).
* Correct fix for stack check when recording BC_VARG.Mike Pall2022-12-091-2/+2
| | | | Reported by Yichun Zhang.
* FFI: Fix dangling reference to CType. Improve checks.Mike Pall2022-12-072-0/+16
| | | | Reported by elmknot.
* Ensure correct stack top for OOM error message.Mike Pall2022-11-091-0/+1
| | | | Reported by Sergey Kaplun.
* Prevent use of RTLD_DEFAULT when NO_RTLD_DEFAULT is defined.Mike Pall2022-08-072-2/+2
| | | | | Workaround for Android 4.4 bug. Thanks to gudzpoz.
* FFI: Fix sizeof expression in C parser for reference types.Mike Pall2022-07-131-1/+1
|
* FFI: Fix ffi.alignof() for reference types.Mike Pall2022-07-133-1/+10
| | | | Reported by Eric Gouyer.
* FFI: Allow ffi.metatype() for typedefs with attributes.Mike Pall2022-07-131-1/+1
| | | | Reported by Eric Gouyer.
* x86/x64: Fix math.ceil(-0.9) result sign.Mike Pall2022-07-081-7/+6
| | | | Reported by minoki.
* Fix warnings in minilua.c.Mike Pall2022-06-082-2/+10
|
* Prevent C compiler undefined-behavior optimization.Mike Pall2022-05-211-1/+1
|
* Fix assertions.Mike Pall2022-04-171-3/+0
| | | | Reported by ssdr.
* Fix BC_UCLO insertion for returns.Mike Pall2022-03-131-1/+1
| | | | Contributed by XmiliaH.
* Fix command-line argv handling.Mike Pall2022-01-271-11/+11
|
* Don't export internal symbol.Mike Pall2022-01-251-1/+1
|
* Always exit after machine code page protection change fails.Mike Pall2022-01-231-1/+2
| | | | Reported by Sergey Kaplun.
* Save trace recorder state around VM event call.Mike Pall2022-01-161-1/+5
| | | | Reported by Sergey Kaplun.
* Bump copyright date.Mike Pall2022-01-15146-147/+147
|
* Limit exponent range in number parsing.Mike Pall2022-01-131-1/+4
| | | | Reported by XmiliaH.
* Fix tonumber("-0") in dual-number mode.Mike Pall2022-01-131-2/+6
| | | | Reported by Sergey Kaplun.
* Limit work done in SINK pass.Mike Pall2022-01-131-4/+12
| | | | Reported by XmiliaH.
* Fix ABC FOLD rule with constants.Mike Pall2022-01-131-2/+3
| | | | Reported by XmiliaH.
* Prevent CSE of a REF_BASE operand across IR_RETF.Mike Pall2021-12-191-0/+11
| | | | Reported by XmiliaH.
* Fix FOLD rule for x-0.Mike Pall2021-12-171-2/+1
| | | | Reported by XmiliaH.
* MIPS: Fix register allocation in assembly of HREF.Mike Pall2021-10-021-3/+5
| | | | Reported by Jakub Piotr Cłapa.
* Fix stack allocation after on-trace stack check.Mike Pall2021-09-211-1/+5
|
* FFI: Don't load PC from non-function object in FFI continuation.Mike Pall2021-09-203-3/+3
| | | | Reported by Yichun Zhang. #743
* FFI: Fix missing cts->L initialization in argv2ctype().Mike Pall2021-09-201-1/+1
|
* Consider slots used by upvalues in use-def analysis.Mike Pall2021-07-271-3/+32
| | | | Reported by XmiliaH.
* Prevent loop in snap_usedef().Mike Pall2021-07-231-1/+6
| | | | Reported by XmiliaH.
* Fix io.close() error message.Mike Pall2021-07-221-2/+8
| | | | Reported by François Perrad.
* Fix io.close().Mike Pall2021-07-221-9/+11
| | | | Reported by farmboy0.
* Fix minilua vararg stack handling.Mike Pall2021-07-211-1/+1
| | | | | | | | | | Note: this is not exploitable! 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. LuaJIT itself has completely different stack handling code and is not affected either. This change is solely for the benefit of others, who might possibly use minilua for purposes other than running DynASM.
* Avoid out-of-range number of results when compiling select(k, ...).Mike Pall2021-07-191-1/+1
| | | | The interpreter will throw and abort the trace, anyway.
* Fix jit.dump() output for IR_CONV.Mike Pall2021-07-191-1/+1
|
* FFI: Fix dangling reference to CType.Mike Pall2021-06-011-0/+2
|
* PPC/PS3: Fix BC_ADD*/BC_SUB*.Mike Pall2021-05-291-4/+4
| | | | Thanks to MaryWan1982.
* Fix use-def analysis for vararg functions.Mike Pall2021-05-291-2/+4
| | | | Reported by Shmuel Zeigerman.
* Fix use-def analysis for BC_VARG.Mike Pall2021-05-241-1/+3
| | | | Reported by Ryan Lucia.
* Fix compiler warnings.Mike Pall2021-05-171-3/+1
|
* Detect inconsistent renames even in the presence of sunk values.Mike Pall2021-03-231-13/+12
| | | | Reported by Igor Munkin.
* Bump copyright date.Mike Pall2021-01-02146-147/+147
|
* FFI: Fix recording of union initialization.Mike Pall2020-12-281-0/+5
| | | | Thanks to Alex Shpilkin.
* x64: Fix __call metamethod return dispatch.Mike Pall2020-12-041-0/+4
| | | | Reported by Igor Munkin.
* Fix warning.Mike Pall2020-11-301-2/+1
|
* Minor changes and https-ify links.Mike Pall2020-10-124-9/+9
|