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

Prevent panic when min > static bound and max is less than it #1718

Merged
merged 2 commits into from
Oct 15, 2020

Conversation

MarkMcCaskey
Copy link
Contributor

@MarkMcCaskey MarkMcCaskey commented Oct 13, 2020

This change should be safe because we check that min <= max when actually making the memory, so this assert can never fire and produce a MemoryStyle that would let us create a memory.

This PR also tests a lot more edge cases of memory creation in the C API.

Resolves the issue brought up here #1631 (comment)

Review

  • Add a short description of the the change to the CHANGELOG.md file

@MarkMcCaskey MarkMcCaskey force-pushed the fix/panic-in-memory-api branch 2 times, most recently from 9bc0977 to 4a00ee2 Compare October 13, 2020 21:31
@MarkMcCaskey MarkMcCaskey force-pushed the fix/panic-in-memory-api branch from 4a00ee2 to e3ec9f3 Compare October 13, 2020 21:39
@MarkMcCaskey MarkMcCaskey requested a review from Hywan October 14, 2020 23:34
@MarkMcCaskey
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 15, 2020

@bors bors bot merged commit e65be6e into master Oct 15, 2020
@bors bors bot deleted the fix/panic-in-memory-api branch October 15, 2020 18:00
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