Home GnuPG

core,w32: Avoid recursive use of npth_unprotect.

Description

core,w32: Avoid recursive use of npth_unprotect.

* src/w32-estream.c (reader): Use standard free.
(writer): Ditto.

There are two errors: The minor one is that we allocated with calloc
but released with _gpgrt_free. The major one is the recursive use of
npth_unprotect due to the syscall_clamp mechanism:

  1. Around the call to _gpgrt_w32_poll
  1. By gpgrt_lock_lock on behalf of a the custom allocation handler in the worker threads at their _gpgrt_free.

This problem was exhibited by GnuPG's dirmngr component.

  • GnuPG-bug-id: T3937
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 1 2018, 7:35 PM
Parents
rE7e2517a29619: po: new Spanish translation
Branches
Unknown
Tags
Unknown
Tasks
T3937: Dirmgnr: X509 Searches on Windows can hang