Page MenuHome GnuPG

gcry_create_nonce fork detection broken
Closed, ResolvedPublic

Description

Release: 1.2.2

Description

gcry_create_nonce initializes the my_pid variable the first time it's run, and on subsequent runs checks "if ( my_pid != getpid () )" to detect forks and reinitialize for the new pid. However my_pid is not updated after the reinitialization so that the "if ( my_pid != getpid () )" test will incorrectly keep triggering on every subsequent call.

Fix

update my_pid in the fork reinitialization code (like other functions in cipher/random.c already do)

Release Note

Fixed in SVN. Stable and development.