Skip to content

Conversation

@webmaster128
Copy link
Member

Resolves this issue: https://github.com/CosmWasm/cosmwasm/pull/1335/files#r917693865

Before we stored u32::MAX+1 in a usize variable which is not possible in a 32 bit host. By limiting pages instead of bytes this can be avoided.

Also we remove the panic case.

@webmaster128 webmaster128 requested a review from ueco-jb July 11, 2022 09:25
@webmaster128 webmaster128 mentioned this pull request Jul 11, 2022
Copy link
Contributor

@ueco-jb ueco-jb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Personally I like this implementation much more, way easier to read.

@webmaster128 webmaster128 merged commit 5ea5912 into main Jul 11, 2022
@webmaster128 webmaster128 deleted the make-limit_to_pages-32bit-friendly branch July 11, 2022 09:59
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.

3 participants