fix wrong line handling in sha1sum -c command
This commit is contained in:
parent
de046a7e9f
commit
9e2af9bdea
@ -11,6 +11,18 @@ diff -urNp coreutils-6.10-orig/src/md5sum.c coreutils-6.10/src/md5sum.c
|
|||||||
*file_name = s;
|
*file_name = s;
|
||||||
|
|
||||||
/* Find end of filename. The BSD 'md5' and 'sha1' commands do not escape
|
/* 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
|
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-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
|
+++ coreutils-6.10/tests/misc/sha1sum 2008-04-15 21:05:43.000000000 +0200
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: The GNU core utilities: a set of tools commonly used in shell scripts
|
Summary: The GNU core utilities: a set of tools commonly used in shell scripts
|
||||||
Name: coreutils
|
Name: coreutils
|
||||||
Version: 6.10
|
Version: 6.10
|
||||||
Release: 20%{?dist}
|
Release: 21%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Url: http://www.gnu.org/software/coreutils/
|
Url: http://www.gnu.org/software/coreutils/
|
||||||
@ -314,6 +314,10 @@ fi
|
|||||||
/sbin/runuser
|
/sbin/runuser
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 18 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-21
|
||||||
|
- fix wrong checksum line handling in sha1sum -c
|
||||||
|
command(#439531)
|
||||||
|
|
||||||
* Tue Apr 15 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-20
|
* Tue Apr 15 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-20
|
||||||
- fix possible segfault in sha1sum/md5sum command
|
- fix possible segfault in sha1sum/md5sum command
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user