1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-07-02 02:48:57 +02:00
gnupg/include
NIIBE Yutaka 212a325d42 gpg: signal handling fix
* include/dotlock.h (dotlock_remove_lockfiles_reclaim): New.
  (dotlock_destroy, dotlock_remove_lockfiles): Add a flag to reclaim
  memory or not.
* util/dotlock.c (dotlock_create): Use
  dotlock_remove_lockfiles_reclaim for atexit.
  (dotlock_destroy_unix, dotlock_destroy)
  (dotlock_remove_lockfiles): Add a reclaim flag.
  (dotlock_remove_lockfiles_reclaim): New.
* g10/signal.c (got_fatal_signal): Disable flag of reclaim memory to
  avoid non-async-face call.
* g10/keydb.c (maybe_create_keyring): Follow the API change.
* g10/gpgv.c: Follow the API change.

--

signal handler got_fatal_signal should not call non-async-signal-safe
functions.  When malloc is interrupted by a signal, it screws up.

This issue is reported:
https://bugs.g10code.com/gnupg/issue1515
http://bugs.debian.org/399904
2013-07-12 17:26:55 +09:00
..
_regex.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
assuan.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
ChangeLog-2011 Rename all ChangeLog files to ChangeLog-2011. 2011-12-02 19:42:56 +01:00
cipher.h Add pubkey letters e and E for ECC. 2011-07-01 10:21:08 +02:00
compat.h Restructured the compat functions and changed its license. 2009-08-25 20:00:24 +00:00
distfiles Distribute dotlock.h 2012-01-11 01:23:59 -05:00
dotlock.h gpg: signal handling fix 2013-07-12 17:26:55 +09:00
dynload.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
errors.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
estream-printf.h First set of changes to backport the new card code from 2.0. 2009-07-21 14:30:13 +00:00
host2net.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
http.h Remove trailing white space from some files 2012-12-19 14:05:56 +01:00
i18n.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
iobuf.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
keyserver.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
memory.h First set of changes to backport the new card code from 2.0. 2009-07-21 14:30:13 +00:00
mpi.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
srv.h * srv.h: Move to include/srv.h. 2009-04-06 03:18:07 +00:00
ttyio.h Minor changes to help the VMS port 2010-09-28 10:07:30 +00:00
types.h Handle systems which have uint64_t but not the UINT64_C macro. 2012-11-06 17:55:31 +01:00
util.h Add meta option ignore-invalid-option. 2012-12-18 18:26:56 +01:00
zlib-riscos.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00