Skip to content

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Sep 15, 2025

Explanation: Fix memory corruption on WebAssembly by properly reserving low-function addresses
Original PRs: #84285
Risk: Low, this only removes a spurious error for library evolution.
Testing: Ensured at desk that the minimum problematic code won't perform bad memory access with ASan instrumentation
Reviewers: @bnbarham

…resses

WebAssembly does not have a reserved address space by default, so we
need to explicitly reserve low addresses for extra inhabitants for
enum types with pointer payloads. swiftlang#39300
added `--global-base` to reserve low data addresses, but we also need
to reserve low function addresses with `--table-base` for function
pointers because WebAssembly uses a separate address space for function
pointers.
@kateinoigakukun kateinoigakukun requested a review from a team as a code owner September 15, 2025 07:13
@kateinoigakukun
Copy link
Member Author

@swift-ci test

@kateinoigakukun kateinoigakukun merged commit a4a95f5 into swiftlang:release/6.2 Sep 16, 2025
5 checks passed
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.

2 participants