cksum: consistently validate --length attributes
commitfea833591ba787b1232d13ac4b985bea1e7601de
authorPádraig Brady <P@draigBrady.com>
Mon, 4 Mar 2024 16:33:23 +0000 (4 16:33 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 4 Mar 2024 16:35:27 +0000 (4 16:35 +0000)
treeb91e4f6780ec2d05c444415494299831912f39c6
parentc877c7c1ee6ab05e77bdb5a9162c0118e11bff01
cksum: consistently validate --length attributes

* src/digest.c (main): Only validate the last used --length
for being a multiple of 8.
* tests/cksum/b2sum.sh: Add a test case.
Fixes https://bugs.gnu.org/69546
src/digest.c
tests/cksum/b2sum.sh