]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cksum: fix off-by-1 bug with \r stripping
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 16 Sep 2021 07:17:18 +0000 (00:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 16 Sep 2021 07:25:26 +0000 (00:25 -0700)
commit121f74dfc2e060a2ae174a636cd773f4d461a852
tree06fe244e78ffe926ceef442851f5a7db301c58e4
parent2715aba08a381a6099c1c6b054995e6b3df785c8
cksum: fix off-by-1 bug with \r stripping

Problem reported by Jim Meyering (Bug#50611).
* src/digest.c (digest_check): When stripping trailing \r,
avoid subscript error before start of line.
src/digest.c