mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
crypt: Fix badsalttest test (Bug 22765)
The value of 'cd.initialized' is left uninitialized before the first invocation of 'crypt_r ()' in this test despite the fact that it should be set to zero according to the API. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
parent
d9f442ce56
commit
650ba77ad5
@ -1,3 +1,8 @@
|
||||
2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
|
||||
|
||||
[BZ #22765]
|
||||
* crypt/badsalttest.c (do_test): Set cd.initialized to 0.
|
||||
|
||||
2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
|
||||
|
||||
* manual/install.texi (Tools for Compilation): Update the newest
|
||||
|
@ -61,6 +61,9 @@ do_test (void)
|
||||
tests[n - 1][1] = &page[pagesize - 1];
|
||||
}
|
||||
|
||||
/* Mark cd as initialized before first call to crypt_r. */
|
||||
cd.initialized = 0;
|
||||
|
||||
for (size_t i = 0; i < n; i++)
|
||||
{
|
||||
if (crypt (tests[i][0], tests[i][1]))
|
||||
|
Loading…
Reference in New Issue
Block a user