Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit the minimal size of bh_hashmap #2073

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

wenyongh
Copy link
Contributor

Limit the minimal size of bh_hashmap to avoid creating hashmap with size 0,
and encounter divide by zero when calling bh_hash_map_find.

Reported by #2008.

@wenyongh wenyongh merged commit 8ee8ab3 into bytecodealliance:main Mar 28, 2023
@wenyongh wenyongh deleted the enhance_bh_hashmap branch March 28, 2023 10:32
victoryang00 pushed a commit to victoryang00/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
Limit the minimal size of bh_hashmap to avoid creating hashmap with size 0,
and `divide by zero` when calling bh_hash_map_find.

Reported by bytecodealliance#2008.
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.

None yet

1 participant