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:
shravanrn@gmail.com 2021-09-09 07:40:38 +00:00
parent b4bf797183
commit 7eb566a244
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;
}