]> git.ipfire.org Git - thirdparty/coreutils.git/commit
b2sum: fix crash with --check and truncated input
authorPádraig Brady <P@draigBrady.com>
Mon, 16 Oct 2017 08:04:37 +0000 (01:04 -0700)
committerPádraig Brady <P@draigBrady.com>
Tue, 24 Oct 2017 06:17:17 +0000 (23:17 -0700)
commitcc19f63be3ad0f27c9ea7f223883b75917fda7fb
tree607f0405e1154683b9f31cfc51670f62e6f6389c
parentf926f7ce0e0a224ef3a37a82e60fd3d7aaca906e
b2sum: fix crash with --check and truncated input

* src/md5sum.c (split_3): Ensure we don't walk off
the end of the string.
* tests/misc/b2sum.sh: Add test cases.
Fixes https://bugs.gnu.org/28860
NEWS
src/md5sum.c
tests/misc/b2sum.sh