path_resolver.h defines PATH_MAX_BYTES, which is used to stack allocate buffers for paths. Update uvwasi__resolve_path() to return a dynamically allocated path (it already exists as host_path, but it is memcpy()'ed to the stack buffer). The call sites will also need to be updated. Once that is done, remove PATH_MAX_BYTES.
path_resolver.hdefinesPATH_MAX_BYTES, which is used to stack allocate buffers for paths. Updateuvwasi__resolve_path()to return a dynamically allocated path (it already exists ashost_path, but it ismemcpy()'ed to the stack buffer). The call sites will also need to be updated. Once that is done, removePATH_MAX_BYTES.