nodejs / uvwasi

WASI syscall API built atop libuv
MIT License
226 stars 51 forks source link

Disallow malformed path with null byte #266

Closed yagehu closed 4 months ago

yagehu commented 4 months ago

This commit adds a check when resolving path such that any null bytes in the input path causes errno inval. This is consistent with other runtimes like Wasmtime, Wasmer, Wazero, WasmEdge, and WAMR.

fixes #265

yagehu commented 4 months ago

@mhdawson can you take a look? Fairly straightforward change. Thanks!