Home GnuPG
Diffusion GnuPG 05ef8c0cc005

g10: Fix uninitalized variable use in sign_file

Description

g10: Fix uninitalized variable use in sign_file

* g10/sign.c (sign_file): Initialize gcry_md_hd_t to NULL.

There are several jumps to leave before gcry_md_open is called so
md should be initialized to NULL to avoid calling gcry_md_close
on an uninitalized variable.

Details

Provenance
aheineckeAuthored on Oct 28 2023, 2:20 PM
Parents
rG16b6b7753229: Minor style fixes.
Branches
Unknown
Tags
Unknown
Tasks
T6780: GnuPG master segfault