[git] GCRYPT - branch, master, updated. libgcrypt-1.8.1-60-g0de2a22
by NIIBE Yutaka
cvs at cvs.gnupg.org
Tue Apr 10 04:03:49 CEST 2018
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".
The branch, master has been updated
via 0de2a22fcf6607d0aecb550feefa414cee3731b2 (commit)
from 9b58e4a03ba3aeff7bae3f40da706977870c9649 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0de2a22fcf6607d0aecb550feefa414cee3731b2
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Tue Apr 10 11:01:57 2018 +0900
random: Protect another use of jent_rng_collector.
* random/rndjent.c (_gcry_rndjent_get_version): Lock the access.
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
diff --git a/random/rndjent.c b/random/rndjent.c
index 6e56c8a..0c5a820 100644
--- a/random/rndjent.c
+++ b/random/rndjent.c
@@ -334,11 +334,13 @@ _gcry_rndjent_get_version (int *r_active)
{
if (r_active)
{
+ lock_rng ();
/* Make sure the RNG is initialized. */
_gcry_rndjent_poll (NULL, 0, 0);
/* To ease debugging we store 2 for a clock_gettime based
* implementation and 1 for a rdtsc based code. */
*r_active = jent_rng_collector? is_rng_available () : 0;
+ unlock_rng ();
}
return jent_version ();
}
-----------------------------------------------------------------------
Summary of changes:
random/rndjent.c | 2 ++
1 file changed, 2 insertions(+)
hooks/post-receive
--
The GNU crypto library
http://git.gnupg.org
_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits
More information about the Gcrypt-devel
mailing list