-
Notifications
You must be signed in to change notification settings - Fork 132
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
test_size.test_invalid fails on x86 #522
Labels
Comments
sbraz
added a commit
to sbraz/rmlint
that referenced
this issue
Sep 8, 2021
strtoull returns ULLONG_MAX, not ULONG_MAX.
sbraz
added a commit
to sbraz/rmlint
that referenced
this issue
Sep 8, 2021
strtoull returns ULLONG_MAX, not ULONG_MAX.
This was fixed by 4043c79. It will be included in master soon. |
cebtenzzre
added a commit
that referenced
this issue
Jun 20, 2023
- Use ULLONG_MAX instead of ULONG_MAX so overflow detection works on platforms where sizeof(long) != sizeof(long long). - Do not rely on specific behavior of cast-to-integer overflow. On platforms such as i686 and aarch64, this produces a different result. Fixes #522
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I tried to run the test suite on an x86 chroot and one test fails:
I was able to confirm this by running
rmlint --size 0-18446744073709551616
which indeed does not fail as excected.The text was updated successfully, but these errors were encountered: