wasm-micro-runtime/core
Andy 5aa22d41e9
Fixing use after free when dumping call stack (#2084)
In multi-threading, this line will eventually call `wasm_cluster_wait_for_all_except_self`:
`DEINIT_VEC(store->instances, wasm_instance_vec_delete)`

As the threads are joining they can call `wasm_interp_dump_call_stack` which tries to
use the module frames but they were already freed by this line:
`DEINIT_VEC(store->modules, wasm_module_vec_delete)`

This PR swaps the order that these are deleted so module is deleted after the instances.

Co-authored-by: Andrew Chambers <ncham@amazon.com>
2023-03-30 09:01:16 +08:00
..
app-framework Readme refactoring (#2038) 2023-03-19 08:05:57 +08:00
app-mgr Readme refactoring (#2038) 2023-03-19 08:05:57 +08:00
deps Bump tensorflow from 2.9.2 to 2.11.1 in install_tensorflow.sh (#2076) 2023-03-28 17:25:36 +08:00
iwasm Fixing use after free when dumping call stack (#2084) 2023-03-30 09:01:16 +08:00
shared Limit the minimal size of bh_hashmap (#2073) 2023-03-28 14:50:31 +08:00
config.h Enable aux stack allocations on application heap (#1799) 2022-12-19 10:58:12 +08:00
version.h Update version to 1.2.0 and update release notes (#2062) 2023-03-25 20:25:54 +08:00