[git] GnuPG - branch, master, updated. gnupg-2.1.9-156-g19f0994
by Neal H. Walfield
cvs at cvs.gnupg.org
Mon Nov 23 11:21:32 CET 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, master has been updated
via 19f099463c82c119288a05eaefc42bf09d617377 (commit)
from 178af9c3f56d385fe28a9e5e8bde0ab34c0b260e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 19f099463c82c119288a05eaefc42bf09d617377
Author: Neal H. Walfield <neal at g10code.com>
Date: Mon Nov 23 11:21:24 2015 +0100
gpg: Don't crash if key is not passed an argument.
* g10/keyedit.c (menu_select_key): Don't crash if P is NULL.
--
Signed-off-by: Neal H. Walfield <neal at g10code.com>
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 5fc92b2..8320aa4 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -4892,8 +4892,9 @@ menu_select_key (KBNODE keyblock, int idx, char *p)
{
KBNODE node;
int i, j;
- int is_hex_digits = strlen (p) >= 8;
+ int is_hex_digits;
+ is_hex_digits = p && strlen (p) >= 8;
if (is_hex_digits)
{
for (i = 0, j = 0; p[i]; i ++)
-----------------------------------------------------------------------
Summary of changes:
g10/keyedit.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list