[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
cksum-64bit-bigendian.patch
Description: Text Data
- new snapshot available: coreutils-8.32.251-7b0db.tar.xz, Pádraig Brady, 2021/09/20
- [PATCH] tests: date-debug: avoid a false failure on solaris, Pádraig Brady, 2021/09/20
- Re: new snapshot available: coreutils-8.32.251-7b0db.tar.xz, Carl Edquist, 2021/09/20
- Re: new snapshot available: coreutils-8.32.251-7b0db.tar.xz, Bernhard Voelker, 2021/09/21
- Re: new snapshot available: coreutils-8.32.251-7b0db.tar.xz, Pádraig Brady, 2021/09/22
- Re: new snapshot available: coreutils-8.32.251-7b0db.tar.xz, Pádraig Brady, 2021/09/23
- [PATCH] tests: sparse-perf: avoid false failure, Pádraig Brady, 2021/09/23
- Re: [platform-testers] new snapshot available: coreutils-8.32.251-7b0db.tar.xz, Efraim Flashner, 2021/09/23
- [PATCH] cksum: fix -a crc on 64 bit big endian systems,
Pádraig Brady <=