mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1727266 - Vendor latest wasm2c rt for correct 32-bit wasi clock handling r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D124308
This commit is contained in:
parent
b4bf797183
commit
7eb566a244
@ -9,8 +9,8 @@ origin:
|
||||
description: wasm2c fork used for rlbox sandboxing
|
||||
url: https://github.com/PLSysSec/wasm2c_sandbox_compiler
|
||||
|
||||
release: commit 8e81237c485f9282a4c176be50bd3c1f8a3ed7d7 (2021-08-24T09:37:16Z).
|
||||
revision: 8e81237c485f9282a4c176be50bd3c1f8a3ed7d7
|
||||
release: commit e78e291be785e7f6bf442ba16127e4cb666f8882 (2021-09-02T04:47:14Z).
|
||||
revision: e78e291be785e7f6bf442ba16127e4cb666f8882
|
||||
|
||||
license: Apache-2.0
|
||||
license-file: LICENSE
|
||||
|
2
third_party/wasm2c/wasm2c/wasm-rt-wasi.c
vendored
2
third_party/wasm2c/wasm2c/wasm-rt-wasi.c
vendored
@ -733,7 +733,7 @@ static int check_clock(u32 clock_id) {
|
||||
|
||||
// out is a pointer to a u64 timestamp in nanoseconds
|
||||
// https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/docs.md#-timestamp-u64
|
||||
u32 Z_wasi_snapshot_preview1Z_clock_time_getZ_iiji(wasm_sandbox_wasi_data* wasi_data, u32 clock_id, u32 precision, u32 out) {
|
||||
u32 Z_wasi_snapshot_preview1Z_clock_time_getZ_iiji(wasm_sandbox_wasi_data* wasi_data, u32 clock_id, u64 precision, u32 out) {
|
||||
if (!check_clock(clock_id)) {
|
||||
return WASI_INVAL_ERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user