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

[compatibility] Windows: Introduce a sentinel to work around UBSan issues #1029

Closed

Conversation

iiSeymour
Copy link
Contributor

UBSan doesn't like that we're pointing out of the range of 'stack', so add a dummy element to the start to act as the "empty" element.

UBSan doesn't like that we're pointing out of the range of 'stack', so
add a dummy element to the start to act as the "empty" element.
@iiSeymour iiSeymour mentioned this pull request Mar 13, 2023
@lh3
Copy link
Owner

lh3 commented Mar 14, 2023

The code is correct. It is apparently ubsan to blame. This PR changes the meaning of the code. I would be hesitant to do that.

@iiSeymour iiSeymour closed this Mar 17, 2023
@iiSeymour iiSeymour deleted the sentinel-to-work-around-ubsan-issues branch March 17, 2023 15:37
@lh3 lh3 mentioned this pull request Aug 14, 2023
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