wasm-micro-runtime/core/shared/platform/linux-sgx
Jämes Ménétrey 0435acdd43
SGX IPFS: Fix a segfault and support seeking beyond the end of files while using SEEK_CUR/SEEK_END (#1916)
The current implementation throws a segmentation fault when padding
files using a large range, because the writing operation overflows the
source buffer, which was a single char.

IPFS previously assumed that the offset for the seek operation was related
to the start of the file (SEEK_SET). It now correctly checks the parameter
'whence' and computes the offset for SEEK_CUR (middle of the file) and
SEEK_END (end of the file).
2023-01-30 08:24:12 +08:00
..
untrusted linux-sgx: Allow to open files with arbitrary paths in the sandbox using IPFS (#1685) 2022-11-07 19:56:16 +08:00
platform_internal.h Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
sgx_file.c linux-sgx: Allow to open files with arbitrary paths in the sandbox using IPFS (#1685) 2022-11-07 19:56:16 +08:00
sgx_file.h linux-sgx: Allow to open files with arbitrary paths in the sandbox using IPFS (#1685) 2022-11-07 19:56:16 +08:00
sgx_ipfs.c SGX IPFS: Fix a segfault and support seeking beyond the end of files while using SEEK_CUR/SEEK_END (#1916) 2023-01-30 08:24:12 +08:00
sgx_ipfs.h linux-sgx: Allow to open files with arbitrary paths in the sandbox using IPFS (#1685) 2022-11-07 19:56:16 +08:00
sgx_platform.c Add bh_print_proc_mem() to dump memory info of current process (#1734) 2022-11-25 08:33:44 +08:00
sgx_pthread.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_pthread.h Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_rsrv_mem_mngr.h Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_signal.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_signal.h Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_socket.c esp-idf: Add socket support for esp-idf platform (#1364) 2022-11-02 18:02:58 +08:00
sgx_socket.h esp-idf: Add socket support for esp-idf platform (#1364) 2022-11-02 18:02:58 +08:00
sgx_thread.c Implement pthread_cond_broadcast wrapper for lib-pthread (#982) 2022-01-25 09:28:02 +08:00
sgx_time.c Implement os_time_get_boot_microsecond() for sgx platform (#818) 2021-11-06 15:58:21 +08:00
sgx_time.h Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_wamr.edl linux-sgx: Allow to open files with arbitrary paths in the sandbox using IPFS (#1685) 2022-11-07 19:56:16 +08:00
shared_platform.cmake Add macro to exclude sgx wasi/pthread ocalls if not needed (#384) 2020-09-15 15:49:09 +08:00