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

Fix undefined behaviors #14365

Merged
merged 3 commits into from Feb 15, 2024
Merged

Fix undefined behaviors #14365

merged 3 commits into from Feb 15, 2024

Conversation

fuzun
Copy link
Contributor

@fuzun fuzun commented Feb 11, 2024

These were spotted using undefined behavior sanitizer.

src/tool.cpp Outdated Show resolved Hide resolved
src/mapgen/mg_biome.cpp Outdated Show resolved Hide resolved
src/nodedef.cpp Outdated Show resolved Hide resolved
@Zughy Zughy added Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements Code quality labels Feb 11, 2024
Copy link
Contributor

@appgurueu appgurueu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smoke-tested mapgen consistency a bit (there should be no issues, though - the assembly that's executed for values within s64 bounds, which we should be staying in with a lot of margin, should be the same), seems to work fine. Thanks.

@sfan5 sfan5 merged commit 6cbb919 into minetest:master Feb 15, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code quality Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements One approval ✅ ◻️
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants