diff options
author | Ingo Klöcker <[email protected]> | 2021-06-26 16:02:47 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2021-06-26 16:03:37 +0000 |
commit | 81a33ea5e1b86d586b956e893a5b25c4cd41c969 (patch) | |
tree | 0def9e87712ea18612ec8838222bcb4c71d21f4f /lang/cpp/src/context_vanilla.cpp | |
parent | Post release updates (diff) | |
download | gpgme-81a33ea5e1b86d586b956e893a5b25c4cd41c969.tar.gz gpgme-81a33ea5e1b86d586b956e893a5b25c4cd41c969.zip |
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.
GnuPG-bug-id: 5509
Diffstat (limited to 'lang/cpp/src/context_vanilla.cpp')
0 files changed, 0 insertions, 0 deletions