Home GnuPG
Diffusion GnuPG 7e59fb21f728

gpg: Fix regression in --locate-keys (in 2.1.9).
7e59fb21f728Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Fix regression in --locate-keys (in 2.1.9).

* g10/getkey.c (getkey_ctx_s): Add field "extra_list".
(get_pubkey_byname): Store strings in the context.
(getkey_end): Free EXTRA_LIST.

This fixes a use-after-free bug. It showed up with:

gpg --auto-key-locate local --locate-key wk@gnupg.org

The key was shown but also all other following keys in the keyring.
Bisecting showed d47e84946ee010917cfc3501062721b74afbb771 as culprit
but the actual cause was a part of:

Details

Provenance
wernerAuthored on Nov 13 2015, 12:56 PM
Parents
rG2038adf16d0e: gpg: Print a new EXPORTED status line.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG7e59fb21f728: gpg: Fix regression in --locate-keys (in 2.1.9). (authored by Werner Koch <wk@gnupg.org>).Nov 13 2015, 12:57 PM