-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
cksum: Added check for sum length #6606
base: main
Are you sure you want to change the base?
Conversation
Can you please add a test so we don't regress in the future? |
and it regressed a test (but maybe the test is incorrect)
|
GNU testsuite comparison:
|
@sylvestre The tests pass now. I think the coreutils/src/uucore/src/lib/features/checksum.rs Lines 238 to 239 in e33cecd
Here bits (which should be bits) are passed to Blake2b::with_output_bytes() which expects to take in bytes. After some investigation I found that the bits are actually bytes. So the assignment to HashAlgorithm::bits is wrong.
I have found that this issue effects other parts of the code aswell. |
99d152d
to
6b65504
Compare
GNU testsuite comparison:
|
6b65504
to
b48fc5a
Compare
GNU testsuite comparison:
|
Looks good but could you please add a test to make sure we don't regress? thanks |
Fixes #6576