mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
* src/cksum.c (min_digest_line_length, digest_hex_bytes) (digest_length, md5_sum_stream, sha1_sum_stream) (sha224_sum_stream, sha256_sum_stream, sha384_sum_stream) (sha512_sum_stream, sha2_sum_stream, sha3_sum_stream) (blake2b_sum_stream, sm3_sum_stream, problematic_chars) (filename_unescape, valid_digits, bsd_split_3) (algorithm_from_tag, split_3, digest_file, output_file) (b64_equal, hex_equal, digest_check, main): * src/cksum_avx2.c (cksum_avx2): * src/cksum_avx512.c (cksum_avx512): * src/cksum_crc.c (cksum_fp_t, cksum_slice8, crc_sum_stream) (crc32b_sum_stream, output_crc): * src/cksum_pclmul.c (cksum_pclmul): * src/cksum_vmull.c (cksum_vmull): * src/sum.c (bsd_sum_stream, sysv_sum_stream, output_bsd, output_sysv): Prefer signed to unsigned int where either will do. This allows better checking with -fsanitize=undefined. It should also help simplify future patches, so that they needn’t worry whether comparisons like ‘i < len - 2’ will misbehave.
19 lines
565 B
C
19 lines
565 B
C
extern int
|
|
bsd_sum_stream (FILE *stream, void *resstream, intmax_t *length);
|
|
|
|
extern int
|
|
sysv_sum_stream (FILE *stream, void *resstream, intmax_t *length);
|
|
|
|
typedef int (*sumfn)(FILE *, void *, intmax_t *);
|
|
|
|
|
|
extern void
|
|
output_bsd (char const *file, int binary_file, void const *digest,
|
|
bool raw, bool tagged, unsigned char delim, bool args,
|
|
intmax_t length);
|
|
|
|
extern void
|
|
output_sysv (char const *file, int binary_file, void const *digest,
|
|
bool raw, bool tagged, unsigned char delim, bool args,
|
|
intmax_t length);
|