1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00
gnupg/util
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
..
argparse.c Add meta option ignore-invalid-option. 2012-12-18 18:26:56 +01:00
assuan-buffer.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
assuan-client.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
assuan-connect.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
assuan-defs.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
assuan-errors.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
assuan-logging.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
assuan-socket-connect.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
assuan-socket.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
assuan-util.c Comment typ fixes. 2007-12-03 14:41:38 +00:00
cert.c The rest of the VMS changes. 2010-09-28 15:55:24 +00:00
ChangeLog-2011 Rename all ChangeLog files to ChangeLog-2011. 2011-12-02 19:42:56 +01:00
compat.c Restructured the compat functions and changed its license. 2009-08-25 20:00:24 +00:00
convert.c First set of changes to backport the new card code from 2.0. 2009-07-21 14:30:13 +00:00
dotlock.c gpg: signal handling fix 2013-07-12 17:26:55 +09:00
errors.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
estream-printf.c Use gcc pragmas to suppress some warnings. 2012-01-10 11:31:00 +01:00
fileutil.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
http.c Part of issue 1447: Pass proper Host header when SRV is used. 2012-12-19 11:43:28 -05:00
iobuf.c Minor changes to help the VMS port 2010-09-28 10:07:30 +00:00
isascii.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
logger.c The rest of the VMS changes. 2010-09-28 15:55:24 +00:00
Makefile.am First set of changes to backport the new card code from 2.0. 2009-07-21 14:30:13 +00:00
membuf.c Fix potential heap corruption in "gpg -v --version" 2012-12-15 11:28:00 +01:00
memory.c First set of changes to backport the new card code from 2.0. 2009-07-21 14:30:13 +00:00
memrchr.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
miscutil.c Allow building with the 32 bit mingw-w64 toolchain. 2012-01-12 18:10:30 +01:00
mkdtemp.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
pka.c Removed some set but unused vars. 2011-08-09 10:54:22 +02:00
regcomp.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
regex.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
regex_internal.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
regex_internal.h Switched to GPLv3. 2007-10-23 10:48:09 +00:00
regexec.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
riscos.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
secmem.c Fix typos spotted during translations 2012-08-24 16:37:44 +02:00
simple-gettext.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
srv.c The rest of the VMS changes. 2010-09-28 15:55:24 +00:00
strgutil.c Fix a W32 problem 2009-09-03 15:27:30 +00:00
strsep.c * strsep.c (strsep): It's strsep, not strsep2 from testing. (If I had 2006-10-03 00:36:18 +00:00
timegm.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00
ttyio.c On VMS use --batch by default if in batch mode. 2011-09-12 15:28:28 +02:00
w32reg.c Switched to GPLv3. 2007-10-23 10:48:09 +00:00