Mike Pall
8a5e398c52
Avoid negation of signed integers in C that may hold INT*_MIN.
...
Reported by minoki.
Recent C compilers 'take advantage' of the undefined behavior.
This completely changes the meaning of expressions like (k == -k).
2022-12-22 00:03:06 +01:00
Mike Pall
b2791179ef
Correct fix for stack check when recording BC_VARG.
...
Reported by Yichun Zhang.
2022-12-09 00:20:05 +01:00
Mike Pall
cc96ab9d51
FFI: Fix dangling reference to CType. Improve checks.
...
Reported by elmknot.
2022-12-07 17:19:29 +01:00
Mike Pall
1c5113aea9
Clarify contact page.
2022-11-14 09:55:38 +01:00
Mike Pall
ca8d3257bb
Ensure correct stack top for OOM error message.
...
Reported by Sergey Kaplun.
2022-11-09 11:01:41 +01:00
Mike Pall
46e62cd963
Fix last edit.
2022-09-13 11:32:53 +02:00
Mike Pall
b907ffc49f
Remove dead Wiki links.
...
The lost content may be resurrected later.
2022-09-13 11:21:30 +02:00
Mike Pall
3b3d427ae3
Patch luajit.pc with INSTALL_INC, if customized.
...
Suggested by Henrique Bucher.
2022-08-15 14:16:14 +02:00
Mike Pall
a93f4bb39f
Prevent use of RTLD_DEFAULT when NO_RTLD_DEFAULT is defined.
...
Workaround for Android 4.4 bug.
Thanks to gudzpoz.
2022-08-07 20:02:40 +02:00
Mike Pall
899093a9e0
FFI: Fix sizeof expression in C parser for reference types.
2022-07-13 00:32:31 +02:00
Mike Pall
36b2962d40
FFI: Fix ffi.alignof() for reference types.
...
Reported by Eric Gouyer.
2022-07-13 00:32:04 +02:00
Mike Pall
27a6fee82e
FFI: Allow ffi.metatype() for typedefs with attributes.
...
Reported by Eric Gouyer.
2022-07-13 00:30:23 +02:00
Mike Pall
674afcd4e2
x86/x64: Fix math.ceil(-0.9) result sign.
...
Reported by minoki.
2022-07-08 14:57:01 +02:00
Mike Pall
2e98c3d064
Grammar and spell check.
2022-06-23 09:10:09 +02:00
Mike Pall
7dc3850e78
Fix warnings in minilua.c.
2022-06-08 15:35:12 +02:00
Mike Pall
fd86c924b9
Update console build instructions.
2022-06-08 14:55:59 +02:00
Mike Pall
bb7a30727e
Prevent C compiler undefined-behavior optimization.
2022-05-21 12:00:10 +02:00
Mike Pall
5743edf3b0
Cleanup of system and architecture support docs.
2022-04-18 01:54:00 +02:00
Mike Pall
1a401622fe
Fix assertions.
...
Reported by ssdr.
2022-04-17 10:56:11 +02:00
Mike Pall
93a65d3cc2
Fix BC_UCLO insertion for returns.
...
Contributed by XmiliaH.
2022-03-13 18:32:32 +01:00
Mike Pall
62339a614f
Fix install docs for Android.
...
Thanks to GuDzpoz.
2022-03-07 09:50:25 +01:00
Mike Pall
9ebebc9b58
Fix command-line argv handling.
2022-01-27 22:18:39 +01:00
Mike Pall
c2237247cc
Don't export internal symbol.
2022-01-25 22:17:56 +01:00
Mike Pall
c50232eb32
Always exit after machine code page protection change fails.
...
Reported by Sergey Kaplun.
2022-01-23 19:16:53 +01:00
Mike Pall
b5b20191f3
Save trace recorder state around VM event call.
...
Reported by Sergey Kaplun.
2022-01-16 20:58:42 +01:00
Mike Pall
c4dfb625ba
Bump copyright date.
2022-01-15 19:30:54 +01:00
Mike Pall
e560487536
Limit exponent range in number parsing.
...
Reported by XmiliaH.
2022-01-13 17:48:43 +01:00
Mike Pall
103c29e634
Fix tonumber("-0") in dual-number mode.
...
Reported by Sergey Kaplun.
2022-01-13 15:38:56 +01:00
Mike Pall
a01602a826
Limit work done in SINK pass.
...
Reported by XmiliaH.
2022-01-13 15:13:59 +01:00
Mike Pall
c8bcf1e5fb
Fix ABC FOLD rule with constants.
...
Reported by XmiliaH.
2022-01-13 14:40:11 +01:00
Mike Pall
e73916d811
Prevent CSE of a REF_BASE operand across IR_RETF.
...
Reported by XmiliaH.
2021-12-19 18:35:27 +01:00
Mike Pall
7b994e0ee0
Fix FOLD rule for x-0.
...
Reported by XmiliaH.
2021-12-17 14:15:40 +01:00
Mike Pall
43f117946e
Update Android build docs.
2021-11-13 20:24:06 +01:00
Mike Pall
d3294fa63b
MIPS: Fix register allocation in assembly of HREF.
...
Reported by Jakub Piotr Cłapa.
2021-10-02 16:52:57 +02:00
Mike Pall
1811c4b0f1
Windows/x64: Document MSVC flags for C++ exception interoperability.
...
Suggested by Julien Cugnière.
2021-09-24 12:10:44 +02:00
Mike Pall
204cee2c91
Fix stack allocation after on-trace stack check.
2021-09-21 16:42:35 +02:00
Mike Pall
68ffbd318b
FFI: Don't load PC from non-function object in FFI continuation.
...
Reported by Yichun Zhang. #743
2021-09-20 14:36:52 +02:00
Mike Pall
a622e2eb55
FFI: Fix missing cts->L initialization in argv2ctype().
2021-09-20 14:34:47 +02:00
Mike Pall
3a654999c6
Consider slots used by upvalues in use-def analysis.
...
Reported by XmiliaH.
2021-07-27 14:47:41 +02:00
Mike Pall
0e66fc9637
Prevent loop in snap_usedef().
...
Reported by XmiliaH.
2021-07-23 21:33:59 +02:00
Mike Pall
d87da3d5fe
Fix io.close() error message.
...
Reported by François Perrad.
2021-07-22 16:21:45 +02:00
Mike Pall
8430f774e6
Fix io.close().
...
Reported by farmboy0.
2021-07-22 02:33:04 +02:00
Mike Pall
81a797373f
Fix minilua vararg stack handling.
...
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.
2021-07-21 12:14:09 +02:00
Mike Pall
6ca580155b
Avoid out-of-range number of results when compiling select(k, ...).
...
The interpreter will throw and abort the trace, anyway.
2021-07-19 17:03:16 +02:00
Mike Pall
44bd7437a2
Fix jit.dump() output for IR_CONV.
2021-07-19 16:05:05 +02:00
Mike Pall
98f95f6918
DynASM/x86: Add missing escape in pattern.
2021-06-08 22:34:22 +02:00
Mike Pall
ec5f6a5618
Fix HTML.
2021-06-07 12:05:34 +02:00
Mike Pall
ae533e3a6c
FFI: Fix dangling reference to CType.
2021-06-01 00:26:45 +02:00
Mike Pall
c2cfa04231
PPC/PS3: Fix BC_ADD*/BC_SUB*.
...
Thanks to MaryWan1982.
2021-05-29 15:33:08 +02:00
Mike Pall
0e53a314d7
Fix use-def analysis for vararg functions.
...
Reported by Shmuel Zeigerman.
2021-05-29 15:31:13 +02:00