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

Remove some use of UB #465

Merged
merged 7 commits into from
Apr 19, 2024
Merged

Remove some use of UB #465

merged 7 commits into from
Apr 19, 2024

Conversation

solidpixel
Copy link
Contributor

Parts of the code use undefined behaviour that is benign in practice on the architectures we care about, but trips UB warnings in other tools (Emscripten, UBSAN, etc). This PR cleans this up so that these other tools run cleanly.

Ensures that SIMD overspill is ZI for decompression, in order to
keep UBSAN happy. In reality the UB SIMD lanes are never actually
written back to memory, but this keeps UBSAN useful as a tool.
@solidpixel solidpixel merged commit b4decff into main Apr 19, 2024
@solidpixel solidpixel deleted the unaligned_ubsan branch April 19, 2024 22:29
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.

None yet

1 participant