[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: md5sum prints binary junk when given bad input
From: |
Eric Blake |
Subject: |
Re: md5sum prints binary junk when given bad input |
Date: |
Fri, 19 Dec 2008 06:16:49 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to James Strother on 12/18/2008 10:58 PM:
Hello James,
>
> But, it seems to me that md5sum should have recognized that the input file
> had
> an invalid format and printed out an error message.
Thanks for the report.
> The version is 5.97 and was encountered on Ubuntu 7.10.
There have been some improvements to md5sum in the meantime; you merely
need to upgrade. From the NEWS file:
* Noteworthy changes in release 6.11 (2008-04-19) [stable]
md5sum would segfault for invalid BSD-style input, e.g.,
echo 'MD5 (' | md5sum -c - Now, md5sum ignores that line.
sha1sum, sha224sum, sha384sum, and sha512sum are affected, too.
[bug introduced in coreutils-5.1.0]
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAklLnsEACgkQ84KuGfSFAYAvIwCfVarMICT5SeKP+cdrRWWba6wU
YREAoIRUrbK6f19LRe25tclGdHizMaEi
=3Dls
-----END PGP SIGNATURE-----