Skip to content

wasm-mutate: add global mutator - #2641

Draft
GtechGovind wants to merge 1 commit into
bytecodealliance:mainfrom
GtechGovind:fix/add-global-mutation
Draft

wasm-mutate: add global mutator#2641
GtechGovind wants to merge 1 commit into
bytecodealliance:mainfrom
GtechGovind:fix/add-global-mutation

Conversation

@GtechGovind

Copy link
Copy Markdown

Summary

  • add an AddGlobalMutator that appends a zero-initialized numeric global
  • preserve existing global sections and insert new sections in canonical order
  • keep the mutation semantics-preserving and disable it in reduction mode
  • cover empty modules, existing globals, section ordering, and applicability

Part of #415.

Testing

  • cargo test -p wasm-mutate
  • cargo clippy -p wasm-mutate --all-targets -- -D warnings
  • cargo fmt --all -- --check
  • git diff --check

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.

1 participant