libc-wasi: add missing pointer validations to socket functions (#4611) (#4665)

* libc-wasi: add missing pointer validations to socket functions (#4611)
cf. https://github.com/bytecodealliance/wasm-micro-runtime/issues/4463
the fix for sock_addr_resolve is incomplete.
cf. https://github.com/bytecodealliance/wasm-micro-runtime/issues/4610

* Sync from main branch
  - wasi_sock_recv doesn't use src_addr
  - check src_addr before coverting

* CI: use windows-2022 image for now (#4633)

github is currently rolling out windows-2025 image.
for some reasons, the "path_symlink_trailing_slashes" test case in
wasi testsuite fails on windows-2025 image.
someone familar with windows need to investigate what was the
key difference between 2022 and 2025.
until that happens, this commit makes our CI use windows-2022 image.

cf.
https://github.com/bytecodealliance/wasm-micro-runtime/issues/4632
https://github.com/actions/runner-images/issues/12677

---------

Co-authored-by: YAMAMOTO Takashi <yamamoto@midokura.com>
This commit is contained in:
liang.he
2025-10-14 09:29:30 +08:00
committed by GitHub
parent 6450d87299
commit 8bd6794de6
7 changed files with 58 additions and 19 deletions

View File

@ -1,7 +1,7 @@
# Copyright (C) 2019 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: compilation on windows-latest
name: compilation on windows-2022
on:
# will be triggered on PR events
@ -63,11 +63,11 @@ jobs:
actions: write
uses: ./.github/workflows/build_llvm_libraries.yml
with:
os: "windows-latest"
os: "windows-2022"
arch: "AArch64 ARM Mips RISCV X86"
build_iwasm:
runs-on: windows-latest
runs-on: windows-2022
strategy:
matrix:
build_options:
@ -105,7 +105,7 @@ jobs:
strategy:
matrix:
include:
- os: windows-latest
- os: windows-2022
llvm_cache_key: ${{ needs.build_llvm_libraries_on_windows.outputs.cache_key }}
steps:
- name: checkout
@ -136,7 +136,7 @@ jobs:
working-directory: wamr-compiler
test:
runs-on: windows-latest
runs-on: windows-2022
needs: [build_iwasm, build_wamrc]
strategy:
fail-fast: false