Home GnuPG
Diffusion GnuPG 537fbe13af6a

g10: Block signals in g10_exit.

Description

g10: Block signals in g10_exit.

* g10/gpg.c (g10_exit): Block all signals before calling
emergency_cleanup.

There is a race condition here which results crash of the process.
When a signal is delivered in emergency_cleanup, it is called again.
This change fixes the problem.

  • GnuPG-bug-id: T2747
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 4 2019, 6:39 AM
Parents
rG0076bef2026a: agent: Allow TERM="".
Branches
Unknown
Tags
Unknown
Tasks
T2747: gpg crashes when it receives a SIGTERM while it's cleaning up