Home GnuPG
Diffusion GnuPG 4a130bbc2c2f

gpg: Fix attempt to double free an UID structure.
4a130bbc2c2fUnpublished

Unpublished Commit · Learn More

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

Description

gpg: Fix attempt to double free an UID structure.

* g10/getkey.c (get_best_pubkey_byname): Set released .UID to NULL.

Phil Pennock reported an assertion failure when doing

% gpg --auto-key-locate dane --locate-keys someone
gpg: Ohhhh jeeee: Assertion "uid->ref > 0" in \
       free_user_id failed (free-packet.c:310)

on his keyring. This patch is not tested but a good guess.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 5 2017, 11:24 PM
Parents
rGe6ca015ae182: scd: Fix compiler warnings for app-openpgp.c.
Branches
Unknown
Tags
Unknown