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

test_size.test_invalid fails on x86 #522

Closed
sbraz opened this issue Sep 8, 2021 · 1 comment
Closed

test_size.test_invalid fails on x86 #522

sbraz opened this issue Sep 8, 2021 · 1 comment
Labels

Comments

@sbraz
Copy link
Contributor

sbraz commented Sep 8, 2021

Hi,
I tried to run the test suite on an x86 chroot and one test fails:

test_size.test_invalid ... ('--size 0-18446744073709551616',) did not trigger an error exit.

I was able to confirm this by running rmlint --size 0-18446744073709551616 which indeed does not fail as excected.

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.
@cebtenzzre cebtenzzre added the bug label Aug 15, 2022
@cebtenzzre
Copy link
Contributor

This was fixed by 4043c79. It will be included in master soon.

@cebtenzzre cebtenzzre linked a pull request Aug 15, 2022 that will close this issue
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
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants