Georgii Rylov
bf6b15521a
format
2025-01-27 11:42:12 +00:00
Georgii Rylov
813831de0e
keep devs notes out of public API
2025-01-27 11:39:53 +00:00
Georgii Rylov
1b82cccff3
meaning of the return bool type in the callback
2025-01-27 11:35:56 +00:00
Georgii Rylov
1f4d3dd4d4
clang-format
2025-01-27 11:31:02 +00:00
Georgii Rylov
d0c6da10ff
wamr bool type
2025-01-27 11:28:30 +00:00
TianlongLiang and GitHub
b6dea221a6
Fix wasm loader check data segment count ( #4039 )
...
correctly report error when datacount section has non-zero data segment count while the data section is not present
2025-01-21 13:08:09 +08:00
liang.he and GitHub
e3ddbd58f7
Synchronize the GC spec tests to the commit from December 9. 2024. ( #4022 )
...
- Synchronize the GC spec tests to the commit from December 9. 2024.
- Revise the error messages to be consistent with the spec test cases.
- bypass gc spec test on the nuttx platform as a workaround
2025-01-20 09:41:47 +08:00
Wenyong Huang and GitHub
831e4bbfd5
Refine getting const offsets in wasm loader of fast-interp ( #4012 )
...
- Refine const offsets in loader for fast-interp
- handle const cell num overflow
- Use const array, remove list
2025-01-20 09:39:32 +08:00
Georgii Rylov
68e4534822
Iterate callstack API
2025-01-17 16:16:45 +00:00
Tomáš Malý and GitHub
ba75b8fd56
fixes for compiling on windows ( #4026 )
2025-01-17 11:06:14 +08:00
Xavier Del Campo and GitHub
1ac62e1f22
.github: Add shared lib builds ( #3975 )
...
So far, no workflows would attempt to build the shared version of the
iwasm library (namely, vmlib).
Note that, as opposed to GC_EH_BUILD_OPTIONS and DEFAULT_BUILD_OPTIONS,
the actual default options defined by the build system are assumed, for
the sake of simplicity and avoiding repeated code.
2025-01-15 15:14:22 +08:00
Wenyong Huang and GitHub
9c3807e124
Refine read leb int wasm loader of fast interpreter ( #4017 )
2025-01-14 17:43:29 +08:00
946430f15e
build(deps): Bump github/codeql-action from 3.28.0 to 3.28.1 ( #4020 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.28.0 to 3.28.1.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Commits](https://github.com/github/codeql-action/compare/v3.28.0...v3.28.1 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-14 17:36:50 +08:00
0d20521406
build(deps): Bump actions/upload-artifact from 4.5.0 to 4.6.0 ( #4021 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4.5.0 to 4.6.0.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v4.5.0...v4.6.0 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-14 15:30:28 +08:00
liang.he and GitHub
53da420c41
Enable shrunk memory by default and add related configurations ( #4008 )
...
- Enable shrunk memory by default and add related configurations
- Improve error messages for memory access alignment checks
- Add documentation for WAMR shrunk memory build option
- Update NuttX workflow to disable shrunk memory build option
2025-01-13 07:09:04 +08:00
liang.he and GitHub
902f7d2631
Add documentation regarding security issues and the status of Wasm proposals ( #3972 )
...
Add documentation regarding security issues and the status of Wasm proposals.
2025-01-09 13:13:30 +08:00
liang.he and GitHub
02683d2eed
Improve stack consistency by ensuring sufficient space for dummy offsets ( #4011 )
...
One more corner case: if the `frame_offset` increases and becomes equal to
the `frame_offset_boundary` after the last assignment within the for loop.
2025-01-09 13:11:25 +08:00
TianlongLiang and GitHub
a653746b7b
Check whether related table has funcref elem in opcode call_indirect ( #3999 )
...
* check whether table has funcref elem in call_indirect
* check whether table has funcref elem in call_indirect when gc is enabled
2025-01-06 13:55:43 +08:00
liang.he and GitHub
9989b1cc1b
[fuzzing] Use software bound-check during fuzzing ( #4003 )
...
* Update CMakeLists.txt of fuzzing
- enable software bound-check
- enable wasi
- disable libc builtin and multiple modules
* Fix off-by-one error in result offset calculation for function calls
2025-01-06 11:36:11 +08:00
TianlongLiang and GitHub
1807eec9d2
Add an example of how to embed WAMR in Zephyr user mode ( #3998 )
2025-01-05 15:34:17 +08:00
liang.he and GitHub
1958808a24
Fix table index calculations in wasm_loader and wasm_mini_loader ( #4004 )
2025-01-05 15:27:40 +08:00
liang.he and GitHub
099056b076
Ensure __heap_base and __data_end global indices are validated against import count ( #3996 )
2025-01-03 14:37:09 +08:00
Marcin Kolny and GitHub
31ff576edf
Error message improvement ( #4000 )
...
Improve error message in the scenario where the runtime was built
with ref types disabled but the module uses reference types feature.
2025-01-03 10:44:25 +08:00
liang.he and GitHub
7f3e0df21c
Handle a new scenario where an item is both exported and imported. ( #3984 )
2024-12-29 15:52:12 +08:00
Huang Qi and GitHub
24ecee83ff
Merge pull request #3987 from no1wudi/fix
...
Break aot_create_comp_data into small functions
2024-12-28 20:25:19 +08:00
Huang Qi and GitHub
38cf274292
Optimize memory initialization handling in AOT loader ( #3983 )
...
Save memory if the file buffer is always exist before exit.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
2024-12-26 15:15:25 +08:00
Huang Qi
9b807660d5
Break aot_create_comp_data into small functions
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
2024-12-26 09:32:16 +08:00
04f1071f1c
build(deps): Bump actions/upload-artifact from 4.4.3 to 4.5.0 ( #3981 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4.4.3 to 4.5.0.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v4.4.3...v4.5.0 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-25 13:31:37 +08:00
bf2f36619b
build(deps): Bump github/codeql-action from 3.27.9 to 3.28.0 ( #3982 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.27.9 to 3.28.0.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Commits](https://github.com/github/codeql-action/compare/v3.27.9...v3.28.0 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-25 13:31:17 +08:00
liang.he and GitHub
70bec14070
Add Tianlong into code owners ( #3970 )
2024-12-24 20:19:40 +08:00
James Ring and GitHub
8ac06490db
Set thread information earlier in exec_env creation ( #3967 )
...
For boundary checking, WAMR calls `pthread_attr_np`, which is
unfortunately quite slow on Linux when not called on the main thread
(see https://github.com/bytecodealliance/wasm-micro-runtime/issues/3966
for discussion).
This change moves the cost of stack bounds checking earlier in the
wasm_exec_env creation process. The idea is that it's perhaps better to
pay the price when creating the execution environment rather than in the
first function call.
The original code is left in place inside
`call_wasm_with_hw_bound_check` in case the `wasm_exec_env` is created
via `wasm_runtime_spawn_exec_env`.
2024-12-24 07:25:52 +08:00
YAMAMOTO Takashi and GitHub
040e776162
top-level cmake: link llvm libraries to our shared library ( #3973 )
...
This fixes link errors seen on my environment.
(macOS 15.2, x86-64, Xcode 16.2)
Tested as:
```
mkdir b
cd b
cmake -D WAMR_BUILD_JIT=1 -D LLVM_DIR=/usr/local/opt/llvm@19/lib/cmake/llvm ..
make
```
2024-12-23 13:38:48 +08:00
Chris Woods and GitHub
4cda74ad85
add reference type support by default for darwin to support WASI-SDK-25 ( #3978 )
2024-12-22 18:48:43 +08:00
Xavier Del Campo and GitHub
9598611e35
CMakeLists.txt: Do not require C++ ( #3956 )
...
By default, the project() CMake command defaults to C and C++. [1]
Therefore, CMake might perform tests for both C and C++ compilers as
part of the configuration phase.
However, this has the consequence of the configuration phase to fail if
the system does not have a C++ toolchain installed, even if C++ is not
really used by the top-level project under the default settings.
Some configurations might still require a C++ toolchain, so
enable_language is selectively called under such circumstances.
[1]: https://cmake.org/cmake/help/latest/command/project.html
2024-12-20 13:05:50 +08:00
liang.he and GitHub
f8f37c8ebb
[fuzzing] Enable instantiation ( #3958 )
...
- Increase input seed size for wasm-tools to generate larger WebAssembly modules
- Add instantiation in wasm mutator fuzz tests
2024-12-19 16:51:20 +08:00
liang.he and GitHub
8d51a3c7a8
use a random secret key ( #3971 )
2024-12-19 16:49:44 +08:00
YAMAMOTO Takashi and GitHub
9916813a34
top-level cmakefile: fix macOS build ( #3968 )
...
At least fast-jit seems to require a bit new C++ standard.
C++17 was chosen to match product-mini/platforms/darwin.
2024-12-19 16:49:25 +08:00
TianlongLiang and GitHub
932eb5d9e5
Only access Zephyr thread stats info when it's available ( #3962 )
2024-12-19 14:26:34 +08:00
09c2abde4a
build(deps): Bump github/codeql-action from 3.27.6 to 3.27.9 ( #3960 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.27.6 to 3.27.9.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Commits](https://github.com/github/codeql-action/compare/v3.27.6...v3.27.9 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-19 09:05:44 +08:00
Xavier Del Campo and GitHub
296c3cc69d
wasm_export.h: Use "default" visibility for gcc and clang ( #3957 )
...
Since the top-level CMakelists.txt is appending `-fvisibility=hidden` to
the compile options, no public symbols are exported by default. This
forbids users from linking against the shared library.
Using `gcc/clang` attributes [1], it is possible to override the definition
for `WASM_RUNTIME_API_EXTERN` so that only required symbols are
correctly exported.
[1]: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes
2024-12-19 08:49:13 +08:00
TianlongLiang and GitHub
9563909d6c
set alignment 4 when loading multi return value ( #3955 )
...
set alignment 4 when loading multi return value for all call opcodes
2024-12-12 20:33:46 +08:00
Marcin Kolny and GitHub
1fb08624ed
Merge pull request #3951 from bytecodealliance/dependabot/github_actions/github/codeql-action-3.27.6
...
build(deps): bump github/codeql-action from 3.27.5 to 3.27.6
2024-12-10 13:31:33 +00:00
Wenyong Huang and GitHub
bebdd4ad17
Fix aot table instantiate ( #3946 )
2024-12-10 20:26:32 +08:00
liang.he and GitHub
591b740571
Consume the placeholders that were put when emitting table info ( #3940 )
2024-12-10 20:26:14 +08:00
dependabot[bot] and GitHub
f665e7b739
build(deps): bump github/codeql-action from 3.27.5 to 3.27.6
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.27.5 to 3.27.6.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Commits](https://github.com/github/codeql-action/compare/v3.27.5...v3.27.6 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-09 10:39:04 +00:00
kk and GitHub
c32a6ceae1
Refactor SConscript and add file checks in iwasm.c ( #3945 )
2024-12-06 14:54:37 +08:00
TianlongLiang and GitHub
aabe83074e
Improvements for platform thread APIs on Windows and Zephyr ( #3941 )
...
* improvements for os_thread_join on Windows and Zephyr
2024-12-06 14:39:53 +08:00
Dylan Johnston and GitHub
739efd78e9
Fix incorrect assignment in win_file.c ( #3939 )
...
win_error should be compared to ERROR_INVALID_HANDLE but was instead
being assigned the value.
2024-12-01 20:40:43 +08:00
James Ring and GitHub
838dd81e68
don't return an uninitialized trap if argv_to_results fails ( #3935 )
...
Currently, if argv_to_results fails (e.g. because an unsupported type is
encountered), an non-null trap with an uninitialized message is
returned.
2024-11-28 11:50:44 +08:00
James Ring and GitHub
e09613c722
support WASM_FUNCREF return type in argv_to_results ( #3936 )
2024-11-28 11:50:16 +08:00