Home GnuPG
Diffusion GPGME 81a33ea5e1b8

core: Fix use-after-free issue in test

Description

core: Fix use-after-free issue in test

* tests/gpg/t-edit-sign.c (sign_key, verify_key_signature): New.
(main): Factored out signing and verifying the result.

Factoring the two steps of the test into different functions fixes the
use-after-free issue that was caused by accidentaly using a variable
of the first step in the second step.

Details

Provenance
ikloeckerAuthored on Jun 26 2021, 6:02 PM
Parents
rMe8e055e682f8: Post release updates
Branches
Unknown
Tags
Unknown
Tasks
T5509: Use-after-free in t-edit-sign test