Commit Graph

6 Commits

Author SHA1 Message Date
Marcin Kolny
37d7439ef9
[refactoring] Extract read leb to a separate file, share the code between loader and mini loader ()
There's probably a number of other places where the bh_leb_read could be used (e.g. aot loader)
but I'm making the change as small as possible. Further refactoring can be done later.
2024-08-14 08:46:24 +08:00
Wenyong Huang
73caf19e69
Fix compile warnings/error reported in Windows ()
Clear some compile warnings and fix undefined reference error for symbol ffs
in Windows platform.
2024-07-12 16:43:22 +08:00
YAMAMOTO Takashi
1b1ec715e9
wasm loader: Reject v128 for interpreters ()
discussed in:
https://github.com/bytecodealliance/wasm-micro-runtime/pull/3592
2024-07-10 13:50:52 +08:00
liang.he
f118492b1d
Add integer overflow check for some indices in wasm/aot loader ()
Check whether the indices overflow UINT32_MAX or not for:
- import function count + function count
- import global count + global count
- import tag count + tag count

This PR fixes the issue reported by Oss-fuzz test ().
2024-07-02 15:48:37 +08:00
liang.he
c19bc95391
Validate func type in aot loader ()
Fix issue reported by Oss-fuzz test ().
2024-06-18 14:23:32 +08:00
Marcin Kolny
fe5e7a9981
Implement Memory64 support for AOT ()
Refer to:
https://github.com/bytecodealliance/wasm-micro-runtime/pull/3266
https://github.com/bytecodealliance/wasm-micro-runtime/issues/3091
2024-05-13 11:03:38 +08:00