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

Value: avoid unaligned loads when printing strings #697

Merged
merged 1 commit into from
May 3, 2024

Conversation

ehaas
Copy link
Collaborator

@ehaas ehaas commented May 3, 2024

This came up in fuzz testing, although I had trouble recreating with the standard test runner. This solution makes wide-string value printing slower but it's already on the debug path. There are other solutions (passing the alignment when calling intern or just aligning based on the byte length), but this seemed like the least invasive and doesn't involve extra storage.

@Vexu Vexu merged commit d226852 into Vexu:master May 3, 2024
3 checks passed
@ehaas ehaas deleted the print-alignment branch May 3, 2024 05:11
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.

2 participants