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

filecache: add trailing crc to serialized executable code #2091

Merged
merged 1 commit into from
Feb 25, 2024
Merged

Conversation

evacchi
Copy link
Contributor

@evacchi evacchi commented Feb 24, 2024

follow up to #2088. Add a trailing crc field after the serialized executable code in the file cache disk format, to ensure that a corrupt file cache won't cause run-time errors, and fail early.

as suggested by @ncruces we use Castagnoli, since it has hardware support.

@mathetake mathetake merged commit 1b2fd85 into main Feb 25, 2024
67 checks passed
@mathetake mathetake deleted the crc-cache branch February 25, 2024 00:27
evacchi added a commit to evacchi/wazero that referenced this pull request Feb 28, 2024
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.

4 participants