Skip to content

wasm-mutate: Fix generating duplicate export names#455

Merged
alexcrichton merged 2 commits intobytecodealliance:mainfrom
alexcrichton:fix-rename-export
Jan 25, 2022
Merged

wasm-mutate: Fix generating duplicate export names#455
alexcrichton merged 2 commits intobytecodealliance:mainfrom
alexcrichton:fix-rename-export

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This fixes an issue from #447 where the renaming export pass was
mistakenly generating a duplicate export name because I forgot to add a
check. The check is added here, however!

This fixes an issue from bytecodealliance#447 where the renaming export pass was
mistakenly generating a duplicate export name because I forgot to add a
check. The check is added here, however!
* Consume fuel when generating random names.
* Also allow generating the same name as before, notably the empty name.
@alexcrichton alexcrichton merged commit ac9028a into bytecodealliance:main Jan 25, 2022
@alexcrichton alexcrichton deleted the fix-rename-export branch January 25, 2022 15:48
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