570c9025e0
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/libgcrypt.git#e12a03494690ed17d13ee81d78f4e1d8e7b0a083
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From: Jussi Kivilinna <jussi.kivilinna@iki.fi>
|
|
Date: Tue, 19 Jan 2021 18:04:30 +0000 (+0200)
|
|
Subject: kdf: add missing null-terminator for self-test test-vector array
|
|
X-Git-Url: http://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commitdiff_plain;h=c6425a5537294dfe2beaafc9105f7af4ceac677f
|
|
|
|
kdf: add missing null-terminator for self-test test-vector array
|
|
|
|
* cipher/kdf.c (selftest_pbkdf2): Add null-terminator to TV array.
|
|
--
|
|
|
|
This was causing kdf self-test to fail on s390x builds.
|
|
|
|
GnuPG-bug-id: 5254
|
|
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
|
|
---
|
|
|
|
diff --git a/cipher/kdf.c b/cipher/kdf.c
|
|
index 3d707bd0..b916a3f8 100644
|
|
--- a/cipher/kdf.c
|
|
+++ b/cipher/kdf.c
|
|
@@ -452,7 +452,8 @@ selftest_pbkdf2 (int extended, selftest_report_func_t report)
|
|
"\x34\x8c\x89\xdb\xcb\xd3\x2b\x2f\x32\xd8\x14\xb8\x11\x6e\x84\xcf"
|
|
"\x2b\x17\x34\x7e\xbc\x18\x00\x18\x1c\x4e\x2a\x1f\xb8\xdd\x53\xe1"
|
|
"\xc6\x35\x51\x8c\x7d\xac\x47\xe9"
|
|
- }
|
|
+ },
|
|
+ { NULL }
|
|
};
|
|
const char *what;
|
|
const char *errtxt;
|
|
|