SEGFAULT;(
Remi Guyomarch
rguyom at mail.dotcom.fr
Mon Jan 31 01:50:22 CET 2000
On Mon, Jan 31, 2000 at 12:45:34AM +0100, Jan-Benedict Glaw wrote:
> Hi!
>
> Found a little bug in g10/keyedit.c... Tested version is 1.0.1, but keyedit.c
> has neither changed in 1.0.1a nor in 1.1.0 (okay, it has changed, but not
> at the relevant part;).
[...]
> Program received signal SIGSEGV, Segmentation fault.
> 0x8080543 in menu_expire (pub_keyblock=0x80cd860, sec_keyblock=0x80d0280) at keyedit.c:1490
> 1490 if( (mainkey && main_pk->version < 4)
>
> ================== 8< ------------------------------------------
>
> main_pk seems to be a pointer to nirwana so main_pk->version kills gpg...
main_pk is ok, but sub_pk is null. Here's the code :
signumber++;
if( (mainkey && main_pk->version < 4)
|| (!mainkey && sub_pk->version < 4 ) ) {
log_info(_(
"You can't change the expiration date of a v3 key\n"));
(keyedit.c:1502 in 1.0.1c)
More information about the Gnupg-devel
mailing list