Skip to content

fix: return noent for empty paths - #327

Open
dannyward630 wants to merge 1 commit into
nodejs:mainfrom
dannyward630:fix/issue-325-empty-path-noent
Open

dannyward630 wants to merge 1 commit into
nodejs:mainfrom
dannyward630:fix/issue-325-empty-path-noent

Conversation

@dannyward630

Copy link
Copy Markdown

Fixes #325.

Handle zero-length paths before the resolver performs length-dependent checks, avoiding the unsigned underflow that caused uvwasi_path_filestat_get to return UVWASI_EINVAL. Empty paths now return UVWASI_ENOENT.

Adds regression coverage for the public API.

Validation: cmake --build build --config Debug --target check (34/34 tests passed on Windows).

Assisted by Codex (GPT-6).

Signed-off-by: Danny Ward <djward888@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

path_filestat_get returns inval for empty paths

1 participant