Skip to content

GUFA: Fix hashing of GlobalInfo's type#6455

Merged
kripken merged 3 commits intoWebAssembly:mainfrom
kripken:gufa.fix
Mar 29, 2024
Merged

GUFA: Fix hashing of GlobalInfo's type#6455
kripken merged 3 commits intoWebAssembly:mainfrom
kripken:gufa.fix

Conversation

@kripken
Copy link
Member

@kripken kripken commented Mar 29, 2024

See lines 69-70 in that header: For a global we store the name and a type,
and the type may be more precise than the global's type in the wasm. As
a result, when hashing, it is not enough to hash only the name, so hash
the type as well.

Not sure if this caused any significant issues due to more hash collisions,
but I noticed it while reading the code.

Also add a random TODO as a comment.

@kripken kripken requested a review from tlively March 29, 2024 22:33
@kripken kripken merged commit fedee9f into WebAssembly:main Mar 29, 2024
@kripken kripken deleted the gufa.fix branch March 29, 2024 23:26
@gkdn gkdn mentioned this pull request Aug 31, 2024
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

Comments