Passing in an offset to fd_pread greater than s64 max results in implementation-defined behavior. For example, it can wrap around and potentially read from a smaller offset. This happens because of an implicit unsigned -> signed integer conversion in the fd_pread implementation.
Other runtimes like Wasmtime will return inval (28).
Passing in an offset to
fd_pread
greater than s64 max results in implementation-defined behavior. For example, it can wrap around and potentially read from a smaller offset. This happens because of an implicit unsigned -> signed integer conversion in thefd_pread
implementation.Other runtimes like Wasmtime will return
inval
(28).