Apply suggestions from code review

Co-authored-by: liang.he <liang.he@intel.com>
This commit is contained in:
linear0211 2025-10-13 16:02:48 +09:00 committed by GitHub
parent 02f59f10b2
commit 7c134400ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3842,7 +3842,7 @@ wasm_runtime_init_wasi(WASMModuleInstanceCommon *module_inst,
"Invalid address pool entry: mask must be a number");
goto fail;
}
if (errno != 0 || mask_val < 0 || mask_val > 128) {
if (errno != 0 || mask_val < 0) {
snprintf(error_buf, error_buf_size,
"Init wasi environment failed: invalid mask number");
goto fail;