diff options
author | Mattias Andrée <maandree@kth.se> | 2022-03-25 17:06:57 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-03-25 17:06:57 +0100 |
commit | 6492b45c22851de9380d5567c6ffec8613a1cd71 (patch) | |
tree | 58d1237a1a1125cfc0c03fc2cfd9795604861346 | |
parent | Add support for new spec error in libkeccak (diff) | |
parent | Fix github issue #34 (diff) | |
download | sha3sum-6492b45c22851de9380d5567c6ffec8613a1cd71.tar.gz sha3sum-6492b45c22851de9380d5567c6ffec8613a1cd71.tar.bz2 sha3sum-6492b45c22851de9380d5567c6ffec8613a1cd71.tar.xz |
Merge branch 'patch'
Diffstat (limited to '')
-rw-r--r-- | common.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -319,7 +319,7 @@ check_checksums(const char *restrict filename, const struct libkeccak_spec *rest buf = emalloc(size); for (;;) { - if (ptr + blksize < size) + if (ptr + blksize > size) buf = erealloc(buf, size <<= 1); got = read(fd, buf + ptr, blksize); |