]> git.ipfire.org Git - thirdparty/coreutils.git/commit
b2sum: --length: fix upper bound check
authorPádraig Brady <P@draigBrady.com>
Sat, 30 Aug 2025 11:08:24 +0000 (12:08 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 30 Aug 2025 11:44:29 +0000 (12:44 +0100)
commit735a4a27f3d3a4bb3a0381c45b7deb936cc293c2
tree3ec5fad55681d39720cf195f7953352786e01565
parent89b9115da67d819e01b4aa541e4672b21e48b250
b2sum: --length: fix upper bound check

* src/digest.c (main): Don't saturate -l to BLAKE2B_MAX_LEN,
so that the subsequent bounds check is performed.
* tests/cksum/b2sum.sh: Add a test case.
* NEWS: Mention the fix introduced in commit v9.5-71-gf2c84fe63
NEWS
src/digest.c
tests/cksum/b2sum.sh