diff options
author | Werner Koch <[email protected]> | 2024-03-06 14:49:51 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-03-06 14:49:51 +0000 |
commit | 79d0e52b2d894f52ce8e575ac7671f4a87282e7f (patch) | |
tree | 9e6b384bd2ed15b193f0e17fdf99e08e10bf5554 /g10/sign.c | |
parent | doc: Document the "grp" record in colon listings. (diff) | |
download | gnupg-79d0e52b2d894f52ce8e575ac7671f4a87282e7f.tar.gz gnupg-79d0e52b2d894f52ce8e575ac7671f4a87282e7f.zip |
gpg: Fix a possible segv due to an uninitialized gcrypt context.
* g10/sign.c (sign_symencrypt_file): Initialize MD for the error case.
--
Reported-by: Falko Strenzke
Fixes-commit: 1ddd69935da629188dcf9215cd9e7a8f68b34a97
in the not yet released master branch.
Diffstat (limited to 'g10/sign.c')
-rw-r--r-- | g10/sign.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/sign.c b/g10/sign.c index b6c4d2126..e00baf3e7 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -1586,7 +1586,7 @@ sign_symencrypt_file (ctrl_t ctrl, const char *fname, strlist_t locusr) compress_filter_context_t zfx; md_filter_context_t mfx; md_thd_filter_context_t mfx2 = NULL; - gcry_md_hd_t md; + gcry_md_hd_t md = NULL; text_filter_context_t tfx; cipher_filter_context_t cfx; iobuf_t inp = NULL; |