diff --git a/coreutils-6.10-md5sha1sum.patch b/coreutils-6.10-md5sha1sum.patch index 09ed0a1..c97eeaa 100644 --- a/coreutils-6.10-md5sha1sum.patch +++ b/coreutils-6.10-md5sha1sum.patch @@ -11,6 +11,18 @@ diff -urNp coreutils-6.10-orig/src/md5sum.c coreutils-6.10/src/md5sum.c *file_name = s; /* Find end of filename. The BSD 'md5' and 'sha1' commands do not escape +diff -urNp coreutils-6.10-orig/src/md5sum.c coreutils-6.10/src/md5sum.c +--- coreutils-6.10-orig/src/md5sum.c 2008-04-18 17:40:03.000000000 +0200 ++++ coreutils-6.10/src/md5sum.c 2008-04-18 17:48:05.000000000 +0200 +@@ -346,6 +346,8 @@ split_3 (char *s, size_t s_len, + static bool + hex_digits (unsigned char const *s) + { ++ if (!*s) ++ return false; + while (*s) + { + if (!isxdigit (*s)) diff -urNp coreutils-6.10-orig/tests/misc/sha1sum coreutils-6.10/tests/misc/sha1sum --- coreutils-6.10-orig/tests/misc/sha1sum 2007-12-13 00:14:28.000000000 +0100 +++ coreutils-6.10/tests/misc/sha1sum 2008-04-15 21:05:43.000000000 +0200 diff --git a/coreutils.spec b/coreutils.spec index 9fac389..7852103 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -1,7 +1,7 @@ Summary: The GNU core utilities: a set of tools commonly used in shell scripts Name: coreutils Version: 6.10 -Release: 20%{?dist} +Release: 21%{?dist} License: GPLv3+ Group: System Environment/Base Url: http://www.gnu.org/software/coreutils/ @@ -314,6 +314,10 @@ fi /sbin/runuser %changelog +* Fri Apr 18 2008 Ondrej Vasik - 6.10-21 +- fix wrong checksum line handling in sha1sum -c + command(#439531) + * Tue Apr 15 2008 Ondrej Vasik - 6.10-20 - fix possible segfault in sha1sum/md5sum command