[svn] gpgme - r1307 - trunk/gpgme
svn author marcus
cvs at cvs.gnupg.org
Thu Mar 6 15:54:12 CET 2008
Author: marcus
Date: 2008-03-06 15:54:11 +0100 (Thu, 06 Mar 2008)
New Revision: 1307
Modified:
trunk/gpgme/ChangeLog
trunk/gpgme/key.c
Log:
2008-03-06 Marcus Brinkmann <marcus at g10code.de>
* key.c (_gpgme_key_add_sig): Terminate UID in case SRC is NULL.
Reported by Marc Mutz.
Modified: trunk/gpgme/ChangeLog
===================================================================
--- trunk/gpgme/ChangeLog 2008-03-05 19:58:41 UTC (rev 1306)
+++ trunk/gpgme/ChangeLog 2008-03-06 14:54:11 UTC (rev 1307)
@@ -1,3 +1,8 @@
+2008-03-06 Marcus Brinkmann <marcus at g10code.de>
+
+ * key.c (_gpgme_key_add_sig): Terminate UID in case SRC is NULL.
+ Reported by Marc Mutz.
+
2008-03-05 Marcus Brinkmann <marcus at g10code.de>
* decrypt.c (release_op_data): Release OPD->result.recipients.
Modified: trunk/gpgme/key.c
===================================================================
--- trunk/gpgme/key.c 2008-03-05 19:58:41 UTC (rev 1306)
+++ trunk/gpgme/key.c 2008-03-06 14:54:11 UTC (rev 1307)
@@ -252,7 +252,7 @@
assert (uid); /* XXX */
/* We can malloc a buffer of the same length, because the converted
- string will never be larger. Actually we allocate it twice the
+ string will never be larger. Actually we allocate it twice the
size, so that we are able to store the parsed stuff there too. */
sig = malloc (sizeof (*sig) + 2 * src_len + 3);
if (!sig)
@@ -275,6 +275,8 @@
parse_user_id (sig->uid, &sig->name, &sig->email,
&sig->comment, dst);
}
+ else
+ sig->uid = '\0';
if (!uid->signatures)
uid->signatures = sig;
More information about the Gnupg-commits
mailing list