wasi-libc icon indicating copy to clipboard operation
wasi-libc copied to clipboard

locking issues in chdir.c

Open yamt opened this issue 6 months ago • 0 comments

in make_absolute:

  • __wasilibc_cwd_unlock is called twice
  • static vars (make_absolute_buf/make_absolute_len) are used w/o lock

in chdir:

  • static vars (relative_buf/relative_buf_len/__wasilibc_cwd_mallocd) are used w/o lock

yamt avatar Feb 14 '24 05:02 yamt