Adam Sampson <[email protected]> writes:

> Bruno Haible via GNU coreutils General Discussion <[email protected]>
> writes:
>
>> On Slackware 15 (32-bit x86), one test fails:
>> FAIL: tests/cksum/b2sum
> [...]
>>  cksum: invalid length: '18446744073709551616'
>> -cksum: maximum digest length for 'BLAKE2b' is 512 bits
>> +cksum: length is not a multiple of 8
>
> I'm seeing the same failure on 32-bit ARM. digest_length is type idx_t,
> which is a typedef for ptrdiff_t, so it'll be 32 bits on i386 and ARM.
> So in the code that handles the -l option, the upper limit probably
> shouldn't be INTMAX_MAX?

Thanks for investigating this. Pádraig pushed a patch earlier that fixed
it [1].

Collin

[1] 
https://github.com/coreutils/coreutils/commit/852c056889bb39207af3c8af80eeefd2e98b29f3

Reply via email to