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 signed integer overflow #572

Merged
merged 1 commit into from
May 24, 2024
Merged

Conversation

NAThompson
Copy link
Contributor

In Issue #571, I encountered a bus error.
Using AddressSanitizer, I traced the error to a negative memory index caused by a 32 bit signed integer overflowing the bounds and requesting memory from a negative index.

Swap out int for long so that more total memory can be addressed and allow larger problem sizes.

In Issue SMTorg#571, I encountered a bus error.
Using AddressSanitizer, I traced the error to a negative memory index
caused by a 32 bit signed integer overflowing the bounds and requesting
memory from a negative index.

Swap out `int` for `long` so that more total memory can be addressed and
allow larger problem sizes.
@relf relf merged commit e7829ce into SMTorg:master May 24, 2024
11 checks passed
@relf
Copy link
Member

relf commented May 24, 2024

Thanks!

@NAThompson NAThompson deleted the 571-integer-overflow branch May 24, 2024 15:31
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