
gniibe at fsij
Oct 21, 2011, 6:56 AM
Post #1 of 1
(117 views)
Permalink
|
|
[PATCH] fix double-free in g10/export.c
|
|
Using gnupg of Git master branch, I encountered SEGV (at malloc) when I did "gpg2 --export-secret-keys". I think that there is double free in g10/export.c for variable 'list'. For me, following patch fixed SEGV. diff --git a/g10/export.c b/g10/export.c index 7deee6b..9a34852 100644 --- a/g10/export.c +++ b/g10/export.c @@ -507,7 +507,7 @@ transfer_format_to_openpgp (gcry_sexp_t s_pgp, PKT_public_key *pk) } skey[skeyidx++] = NULL; - gcry_sexp_release (list); + gcry_sexp_release (list); list = NULL; /* We have no need for the CSUM valuel thus we don't parse it. */ /* list = gcry_sexp_find_token (top_list, "csum", 0); */ -- 1.7.6.3 _______________________________________________ Gnupg-devel mailing list Gnupg-devel [at] gnupg http://lists.gnupg.org/mailman/listinfo/gnupg-devel
|