From c2007b3df1b680db993a9fae43ce8583f1e20921 Mon Sep 17 00:00:00 2001 From: Gabriel Paradiso Date: Thu, 9 Jan 2025 17:07:30 +0100 Subject: [PATCH] fix: newTimeout should be read as Uint64 (#987) --- pkg/workflows/wasm/host/wasip1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/workflows/wasm/host/wasip1.go b/pkg/workflows/wasm/host/wasip1.go index 08235e23e..008c0fc4c 100644 --- a/pkg/workflows/wasm/host/wasip1.go +++ b/pkg/workflows/wasm/host/wasip1.go @@ -138,7 +138,7 @@ func pollOneoff(caller *wasmtime.Caller, subscriptionptr int32, eventsptr int32, // - 8-16: timeout // - 16-24: precision // - 24-32: flag - newTimeout := binary.LittleEndian.Uint16(argBuf[8:16]) + newTimeout := binary.LittleEndian.Uint64(argBuf[8:16]) flag := binary.LittleEndian.Uint16(argBuf[24:32]) var errno Errno