1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 99972bd6e9 gpg: Fix bug parsing a zero length user id.
* g10/getkey.c (get_user_id): Do not call xmalloc with 0.

* common/xmalloc.c (xmalloc, xcalloc): Take extra precaution not to
pass 0 to the arguments.
--

The problem did not occur in 1.x because over there the xmalloc makes
sure to allocate at least one byte.  With 2.x for most calls the
xmalloc of Libgcrypt is used and Libgcrypt returns an error insteead
of silent allocating a byte.  Thus gpg 2.x bailed out with an
"Fatal: out of core while allocating 0 bytes".

The extra code in xmalloc.c is for more robustness for the other
xmalloc calls.
2014-06-02 11:47:25 +02:00
..
2014-05-08 10:28:23 +02:00
2014-03-07 08:51:47 +01:00
2014-04-22 16:59:06 +02:00
2013-11-18 14:09:47 +01:00
2011-02-04 12:57:53 +01:00
2007-07-04 19:49:40 +00:00
2013-11-18 14:09:47 +01:00
2014-04-22 16:59:06 +02:00
2014-01-29 17:45:05 +01:00
2011-02-04 12:57:53 +01:00
2014-01-29 17:45:05 +01:00
2007-07-04 19:49:40 +00:00
2014-05-07 16:37:15 +02:00
2014-03-06 15:28:42 +01:00
2014-04-08 17:06:17 +02:00
2012-11-20 19:03:49 +01:00
2013-01-30 18:51:56 +01:00
2014-04-22 15:02:05 +02:00
2012-03-27 19:46:20 +02:00
2014-04-17 21:09:10 +02:00
2014-05-02 11:19:25 +02:00
2014-01-29 17:45:05 +01:00
2014-04-17 21:09:10 +02:00
2013-07-31 16:25:41 +02:00
2011-02-04 12:57:53 +01:00
2014-04-17 21:09:10 +02:00

Stuff used by several modules of GnuPG.

These directories use it:

gpg
sm
agent

These directories don't use it:

kbx