Bug gpg 1.3.90

David Shaw dshaw at jabberwocky.com
Tue Oct 5 00:03:35 CEST 2004


On Mon, Oct 04, 2004 at 11:20:23PM +0200, Sebastian Wiesinger wrote:
> Hi,
> 
> I discovered a bug in 1.3.90:
> 
> [fire at data:~]$ /usr/bin/gpg --no-options --keyserver subkeys.pgp.net. \
> > --keyserver-options include-disabled,include-revoked --refresh-keys
> gpg: requesting key 76B79F20 from hkp server subkeys.pgp.net
> gpg: key 76B79F20: "Sebastian Wiesinger <sebastian at karotte.org>" not changed
> gpg: Total number processed: 1
> gpg:              unchanged: 1
> gpg: refreshing 36 keys from subkeys.pgp.net.
> gpg: requesting key 97F5A1D8 from hkp server subkeys.pgp.net.
> 
> gpg: Ohhhh jeeee: ... this is a bug (keyid.c:250:keystr_from_desc)
> secmem usage: 1408/1408 bytes in 2/2 blocks of pool 1408/32768
> Aborted
> [Exit 134 (SIGABRT)]
> 
> Do you need any further information?

Interesting problem.  Try this patch.

David
-------------- next part --------------
Index: keyserver.c
===================================================================
RCS file: /cvs/gnupg/gnupg/g10/keyserver.c,v
retrieving revision 1.66
diff -u -r1.66 keyserver.c
--- keyserver.c	29 Sep 2004 17:41:58 -0000	1.66
+++ keyserver.c	4 Oct 2004 21:57:47 -0000
@@ -884,6 +884,10 @@
 	    else if(desc[i].mode==KEYDB_SEARCH_MODE_SHORT_KID)
 	      fprintf(spawn->tochild,"0x%08lX\n",
 		      (ulong)desc[i].u.kid[1]);
+	    else if(desc[i].mode==KEYDB_SEARCH_MODE_NONE)
+	      continue;
+	    else
+	      BUG();
 
 	    log_info(_("requesting key %s from %s server %s\n"),
 		     keystr_from_desc(&desc[i]),


More information about the Gnupg-devel mailing list