NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/57043: netpgp --help crashes



The following reply was made to PR bin/57043; it has been noted by GNATS.

From: Rhialto <rhialto%falu.nl@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: rhialto%falu.nl@localhost
Subject: Re: bin/57043: netpgp --help crashes
Date: Sun, 2 Oct 2022 17:26:18 +0200

 It goes without saying that "netpgpkeys --list-sigs" crashes in the
 same way as in the initial report.
 
 It seems that it is not this particular key (from they key variable)
 which causes the crash.
 
 So probably it's caused by the size of my keyring as a whole
 (6.226.915 bytes; gpg --list-keys|wc -l is 2136 lines, of which 384
 lines start with "pub", indicating a public key).
 
 I managed to identify the key in the crash. I extracted it with gpg, and
 then listing it with netpgpkeys showed no problem:
 
 (gdb) print /x key->sigfingerprint
 $6 = {fingerprint = {0x3e, 0xa9, 0x4c, 0x2c, 0x38, 0xa9, 0x64, 0xd2, 0x62, 
     0xbf, 0x70, 0x3b, 0x90, 0x39, 0xa0, 0xbf, 0xd1, 0x39, 0xcc, 0x4c}, 
   length = 0x14, hashtype = 0x0}
 (gdb) print /x key->sigid         
 $7 = {0x90, 0x39, 0xa0, 0xbf, 0xd1, 0x39, 0xcc, 0x4c}
 
 $ gpg --export 9039a0bfd139cc4c >/tmp/badkey.gpg
 
 $ netpgpkeys --list-keys --keyring /tmp/badkey.pgp 1 key found
 "pub" 1024/"DSA" "9039a0bfd139cc4c" 1998-04-25 [EXPIRED 2000-05-16]
 Key fingerprint: "3ea9 4c2c 38a9 64d2 62bf 703b 9039 a0bf d139 cc4c "
 uid              "Brian Warner (home) <warner%lothar.com@localhost>" ""
 uid              "expired (this key has expired. please use my current one) <warner%lothar.com@localhost>" ""
 encryption 2048/"Elgamal (Encrypt-Only)" "6af6cdc8be4e32ce" 1998-04-25
 
 It is the first key as shown by "gpg --list-keys", so we can't deduce
 from this which limit is being passed.
 


Home | Main Index | Thread Index | Old Index