md5sum -c: ignore a line with a NUL byte among checksum hex digits
authorJim Meyering <meyering@redhat.com>
Fri, 18 Apr 2008 21:42:40 +0000 (23:42 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 18 Apr 2008 22:24:55 +0000 (00:24 +0200)
commita85752ff4b7c18e6c4cf0c0e43da24080e2d0709
treea0d49f6f75edb6a0badccb6314ab0cc607e41efa
parent0d03baa068c20f09bcba3a915fd756db7359a7fa
md5sum -c: ignore a line with a NUL byte among checksum hex digits

* src/md5sum.c (hex_digits): Require that all "digest_hex_bytes"
be hexadecimal digits, not just those before the first NUL byte.
This bug dates back to the original version:
3763a4f24eb21be40674d13ff7b04e078f473e85
* tests/misc/md5sum (nul-in-cksum): Test for the above.
* NEWS [Bug fixes]: Mention this.
Prompted by a report from Flóki Pálsson in
http://bugzilla.redhat.com/439531
NEWS
src/md5sum.c
tests/misc/md5sum