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

fix: Size of a pointer is always POINTER_BYTE_SIZE. #18

Merged
merged 3 commits into from
Jun 17, 2021

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Jun 17, 2021

This patch does 2 things:

  1. The size of a pointer must always be POINTER_BYTE_SIZE. The tracker
    must not come up in this level, it must be used in upper types.
  2. The size of an UnsafeCell is the size of itself, in addition to the
    size of its content (viewed as a pointer) if not visited already.

It addresses CosmWasm/cosmwasm#959.

Hywan added 3 commits June 17, 2021 10:52
The size of a pointer must always be `POINTER_BYTE_SIZE`. The tracker
must not come up in this level, it must be used in upper types.
The size of an `UnsafeCell` is the size of itself, in addition to the
size of its content (viewed as a pointer) if not visited already.
@Hywan Hywan added the bug Something isn't working label Jun 17, 2021
@Hywan Hywan self-assigned this Jun 17, 2021
@Hywan Hywan merged commit 0b6fa6b into wasmerio:master Jun 17, 2021
Hywan added a commit to Hywan/wasmer that referenced this pull request Jun 17, 2021
It includes this patch wasmerio/loupe#18 that
fixes this bug CosmWasm/cosmwasm#959.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant