This behavior was introduced in commit FILEUTILS-4_0_44
-4-g519b707b4.
* src/cksum.c (cksum_slice8): Only report the overflow, and continue.
* src/cksum_pclmul.c (cksum_pclmul): Likewise.
uint32_t second = 0;
if (length + bytes_read < length)
- die (EXIT_FAILURE, 0, _("%s: file too long"), quotef (file));
+ {
+ error (0, EOVERFLOW, _("%s: file too long"), quotef (file));
+ return false;
+ }
length += bytes_read;
/* Process multiples of 8 bytes */
#include <stdint.h>
#include <x86intrin.h>
#include "system.h"
-#include "die.h"
+#include "error.h"
/* Number of bytes to read at once. */
#define BUFLEN (1 << 16)
__m128i xor_crc;
if (length + bytes_read < length)
- die (EXIT_FAILURE, 0, _("%s: file too long"), quotef (file));
+ {
+ error (0, EOVERFLOW, _("%s: file too long"), quotef (file));
+ return false;
+ }
length += bytes_read;
datap = (__m128i *)buf;