Skip to content

Fix: Fix null pointer dereference in wasm_c_api.c#4863

Merged
lum1n0us merged 1 commit intobytecodealliance:mainfrom
lum1n0us:dev/fix-c-api-null-deref
Mar 10, 2026
Merged

Fix: Fix null pointer dereference in wasm_c_api.c#4863
lum1n0us merged 1 commit intobytecodealliance:mainfrom
lum1n0us:dev/fix-c-api-null-deref

Conversation

@lum1n0us
Copy link
Contributor

@lum1n0us lum1n0us commented Mar 5, 2026

This PR fixes a null pointer dereference in wasm_c_api.c. The exec_env variable could be null in the failed block, and it was being used without a check.

@lum1n0us lum1n0us added the bug-fix Determine if this PR addresses a bug. It will be used by scripts to classify PRs. label Mar 5, 2026
@lum1n0us lum1n0us merged commit 9d1dc3e into bytecodealliance:main Mar 10, 2026
1183 of 1203 checks passed
@lum1n0us lum1n0us deleted the dev/fix-c-api-null-deref branch March 10, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix Determine if this PR addresses a bug. It will be used by scripts to classify PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants