Diffusion GnuPG 9ac182f376ab

gpg: Fix double free with anonymous recipients.

Authored by werner on Nov 29 2019, 5:44 PM.

Description

gpg: Fix double free with anonymous recipients.

* g10/pubkey-enc.c (get_session_key): Do not release SK.

Bug is in 2.2.18 only.

The semantics of the enum_secret_keys function changed in master.
When back porting this for 2.2.18 I missed this change and thus we ran
into a double free. The patches fixes the regression but is it clumsy.
We need to change the enum_secret_keys interface to avoid such a
surprising behaviour; this needs to be done in master first.

Details

Committed
wernerNov 29 2019, 5:44 PM
Parents
rG80971adbc1ed: Post release updates
Branches
Unknown
Tags
Unknown
Tasks
T4762: GPG decryption results in error "double free detected in tcache 2"