coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] cksum: fix -a crc on 64 bit big endian systems


From: Pádraig Brady
Subject: [PATCH] cksum: fix -a crc on 64 bit big endian systems
Date: Thu, 23 Sep 2021 23:53:28 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0

* src/cksum.c (crc_sum_stream): On sparc64 for example,
a crc of 0 was printed due to mismatch in size of
variable copied between generator and output functions.
uint_fast32_t is generally 64 bits on 64 bit systems,
so we copy through an int to ensure we don't use the wrong
end of a 64 bit variable.
Reported by Nelson H. F. Beebe

Attachment: cksum-64bit-bigendian.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]