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

Rework Module deserialization functions #3894

Merged
merged 3 commits into from
May 24, 2023

Conversation

theduke
Copy link
Contributor

@theduke theduke commented May 22, 2023

Rework the deserialize/deserialize_checked methods for module
deserialization.

  • Make checked methods unsafe again, because loading executable memory
    Required because loading executable code into memory is inherently unsafe

  • Remove _checked suffix from methods that use artifact validation,

  • Rename methods that skip artifact validation to deserialize_unchecked

Closes #3727

@theduke theduke requested a review from syrusakbary as a code owner May 22, 2023 20:22
@theduke theduke requested a review from ptitSeb May 22, 2023 20:23
@theduke theduke force-pushed the issue-3727-rename-deserialize-fns branch 5 times, most recently from 863fd91 to aa228d9 Compare May 23, 2023 07:47
@theduke theduke force-pushed the issue-3727-rename-deserialize-fns branch 2 times, most recently from 8333741 to d184831 Compare May 23, 2023 08:10
@theduke theduke force-pushed the issue-3727-rename-deserialize-fns branch 2 times, most recently from 402e115 to 3ea5fdd Compare May 23, 2023 17:49
theduke and others added 3 commits May 23, 2023 19:21
Rework the deserialize/deserialize_checked methods for module
deserialization.

* Make deserialize() methods use artifact validation
* Make checked methods unsafe again, because loading executable memory
  is inherently unsafe
* Rename methods that skip artifact validation to deserialize_unchecked

Closes #3727
@theduke theduke force-pushed the issue-3727-rename-deserialize-fns branch from 3ea5fdd to bedcb17 Compare May 23, 2023 19:21
@theduke theduke enabled auto-merge (rebase) May 23, 2023 19:21
@theduke theduke requested a review from ptitSeb May 23, 2023 22:32
@theduke theduke merged commit 458330e into master May 24, 2023
@theduke theduke deleted the issue-3727-rename-deserialize-fns branch May 24, 2023 07:31
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.

Rename unsafe Artifact deserialize functions
2 participants