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 Drop of uninit Ctx; use MaybeUninit #576

Merged
merged 4 commits into from
Jul 24, 2019
Merged

Conversation

MarkMcCaskey
Copy link
Contributor

I'm somewhat concerned that we need to call
intrinsics::panic_if_uninhabited::<T>(); or something to tell the compiler that we know it's safe.

We just reinterpret the pointer later as initialized which is safe in theory due to repr(transparent)

this should unblock #561

@MarkMcCaskey MarkMcCaskey added the 📦 lib-deprecated About the deprecated crates label Jul 24, 2019
@MarkMcCaskey
Copy link
Contributor Author

bors r+

bors bot added a commit that referenced this pull request Jul 24, 2019
576: fix Drop of uninit Ctx; use MaybeUninit r=MarkMcCaskey a=MarkMcCaskey

I'm somewhat concerned that we need to call
`intrinsics::panic_if_uninhabited::<T>();` or something to tell the compiler that we know it's safe.

We just reinterpret the pointer later as initialized which is safe in theory due to `repr(transparent)`

this should unblock #561

Co-authored-by: Mark McCaskey <mark@wasmer.io>
@bors
Copy link
Contributor

bors bot commented Jul 24, 2019

Timed out

@MarkMcCaskey
Copy link
Contributor Author

bors retry

bors bot added a commit that referenced this pull request Jul 24, 2019
576: fix Drop of uninit Ctx; use MaybeUninit r=MarkMcCaskey a=MarkMcCaskey

I'm somewhat concerned that we need to call
`intrinsics::panic_if_uninhabited::<T>();` or something to tell the compiler that we know it's safe.

We just reinterpret the pointer later as initialized which is safe in theory due to `repr(transparent)`

this should unblock #561

Co-authored-by: Mark McCaskey <mark@wasmer.io>
@bors
Copy link
Contributor

bors bot commented Jul 24, 2019

Build failed

@MarkMcCaskey
Copy link
Contributor Author

bors retry

bors bot added a commit that referenced this pull request Jul 24, 2019
576: fix Drop of uninit Ctx; use MaybeUninit r=MarkMcCaskey a=MarkMcCaskey

I'm somewhat concerned that we need to call
`intrinsics::panic_if_uninhabited::<T>();` or something to tell the compiler that we know it's safe.

We just reinterpret the pointer later as initialized which is safe in theory due to `repr(transparent)`

this should unblock #561

Co-authored-by: Mark McCaskey <mark@wasmer.io>
@bors
Copy link
Contributor

bors bot commented Jul 24, 2019

Timed out

@MarkMcCaskey
Copy link
Contributor Author

bors r+

bors bot added a commit that referenced this pull request Jul 24, 2019
576: fix Drop of uninit Ctx; use MaybeUninit r=MarkMcCaskey a=MarkMcCaskey

I'm somewhat concerned that we need to call
`intrinsics::panic_if_uninhabited::<T>();` or something to tell the compiler that we know it's safe.

We just reinterpret the pointer later as initialized which is safe in theory due to `repr(transparent)`

this should unblock #561

Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <markmccaskey@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented Jul 24, 2019

Canceled

@MarkMcCaskey
Copy link
Contributor Author

bors r+

bors bot added a commit that referenced this pull request Jul 24, 2019
576: fix Drop of uninit Ctx; use MaybeUninit r=MarkMcCaskey a=MarkMcCaskey

I'm somewhat concerned that we need to call
`intrinsics::panic_if_uninhabited::<T>();` or something to tell the compiler that we know it's safe.

We just reinterpret the pointer later as initialized which is safe in theory due to `repr(transparent)`

this should unblock #561

Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <markmccaskey@users.noreply.github.com>
@MarkMcCaskey MarkMcCaskey merged commit 05be423 into master Jul 24, 2019
@bors bors bot deleted the fix/dropping-bad-data branch July 24, 2019 20:51
YaronWittenstein added a commit to spacemeshos/svm that referenced this pull request Jul 25, 2019
the specific wasmer fix-issue:
[fix Drop of uninit Ctx; use MaybeUninit](wasmerio/wasmer#576)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 lib-deprecated About the deprecated crates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants