Accepting request 754951 from Base:System

- Update to version 4.4.10
  * Fix alignment problem for GOST 34.11 (Streebog) in gost-yestcrypt.
  * The crypt_* functions will now all fail and set errno to ERANGE if
    their 'phrase' argument is longer than CRYPT_MAX_PASSPHRASE_SIZE
    characters (this is currently 512)
  * The NT hashing method no longer truncates passphrases at 128
    characters; Windows does not do this.
- format-overflow.patch: remove (forwarded request 754950 from Andreas_Schwab)

OBS-URL: https://build.opensuse.org/request/show/754951
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libxcrypt?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2019-12-11 10:59:03 +00:00 committed by Git OBS Bridge
commit dd0c1495b4
5 changed files with 17 additions and 83 deletions

View File

@ -1,77 +0,0 @@
From 2e4135284e7aaeac2218878041de31d8e724dc8f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
Date: Thu, 24 Jan 2019 22:22:36 +0100
Subject: [PATCH] test-alg-hmac-sha1: Fix -Wformat-overflow.
---
test-alg-hmac-sha1.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/test-alg-hmac-sha1.c b/test-alg-hmac-sha1.c
index ffc6cb4..167f0b4 100644
--- a/test-alg-hmac-sha1.c
+++ b/test-alg-hmac-sha1.c
@@ -162,8 +162,15 @@ main (void)
if (strcmp (dbuf, test->expect) != 0)
{
n = 1;
- printf ("\nkey=%s, data=%s,\nresult=%s: %s\n",
- test->key, test->data, dbuf, test->expect);
+ printf ("\nkey=");
+ puts (test->key);
+ puts (", data=");
+ puts (test->data);
+ printf (",\nresult=");
+ puts (dbuf);
+ puts (": ");
+ puts (test->expect);
+ printf ("\n");
}
}
return n;
--
2.20.1
From 8d109010f022ac75e383ac74d1961c0c63a16c3a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
Date: Tue, 19 Feb 2019 10:59:43 +0100
Subject: [PATCH] test-alg-hmac-sha1: Use fputs() instead of puts().
puts() appends a newline character at the
end of the output, while fputs() does not.
---
test-alg-hmac-sha1.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/test-alg-hmac-sha1.c b/test-alg-hmac-sha1.c
index 167f0b4..5a87c7b 100644
--- a/test-alg-hmac-sha1.c
+++ b/test-alg-hmac-sha1.c
@@ -162,15 +162,15 @@ main (void)
if (strcmp (dbuf, test->expect) != 0)
{
n = 1;
- printf ("\nkey=");
- puts (test->key);
- puts (", data=");
- puts (test->data);
- printf (",\nresult=");
- puts (dbuf);
- puts (": ");
- puts (test->expect);
- printf ("\n");
+ fputs ("\nkey=", stdout);
+ fputs (test->key, stdout);
+ fputs (", data=", stdout);
+ fputs (test->data, stdout);
+ fputs (",\nresult=", stdout);
+ fputs (dbuf, stdout);
+ fputs (": ", stdout);
+ fputs (test->expect, stdout);
+ fputs ("\n", stdout);
}
}
return n;
--
2.20.1

3
libxcrypt-4.4.10.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7da15438d93883be434b0b44a8c22f726b5f605c6d88a315e17d4f4e929c20a8
size 499736

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:705dfb225f2d56da8bc3f1028c358aaaa6c0b44e2cc9e90f7becb9a7bf8259ab
size 291998

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sat Dec 7 14:19:35 UTC 2019 - Andreas Schwab <schwab@suse.de>
- Update to version 4.4.10
* Fix alignment problem for GOST 34.11 (Streebog) in gost-yestcrypt.
* The crypt_* functions will now all fail and set errno to ERANGE if
their 'phrase' argument is longer than CRYPT_MAX_PASSPHRASE_SIZE
characters (this is currently 512)
* The NT hashing method no longer truncates passphrases at 128
characters; Windows does not do this.
- format-overflow.patch: remove
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jun 20 11:49:28 UTC 2019 - Martin Liška <mliska@suse.cz> Thu Jun 20 11:49:28 UTC 2019 - Martin Liška <mliska@suse.cz>

View File

@ -1,7 +1,7 @@
# #
# spec file for package libxcrypt # spec file for package libxcrypt
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: libxcrypt Name: libxcrypt
Version: 4.4.3 Version: 4.4.10
Release: 0 Release: 0
Summary: Extended crypt library for DES, MD5, Blowfish and others Summary: Extended crypt library for DES, MD5, Blowfish and others
License: GPL-3.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause AND BSD-3-Clause AND SUSE-Public-Domain License: GPL-3.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause AND BSD-3-Clause AND SUSE-Public-Domain
@ -25,7 +25,6 @@ Group: Development/Libraries/C and C++
URL: https://github.com/besser82/%{name} URL: https://github.com/besser82/%{name}
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: baselibs.conf Source1: baselibs.conf
Patch0: format-overflow.patch
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: libtool BuildRequires: libtool