Skip to content

stack: prevent undefined behavior on int pointers #404

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

Closed
wants to merge 1 commit into from

Conversation

psarna
Copy link

@psarna psarna commented Jul 17, 2024

Without proper alignment, UBSAN will cause the program to fail at runtime with "illegal instruction" signal. zig cc toolchain enables UBSAN by default, which helped me pinpoint the cause.

Without proper alignment, UBSAN will cause the program to fail at
runtime with "illegal instruction" signal. `zig cc` toolchain enables
UBSAN by default, which helped me pinpoint the cause.
@eed3si9n
Copy link
Collaborator

eed3si9n commented Jul 17, 2024

There was a commit 2c5c1d2 in #398, which I wonder we should cherry pick instead. see #405

@eed3si9n
Copy link
Collaborator

Closing this in favor of #405

@eed3si9n eed3si9n closed this Jul 17, 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.

2 participants