mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
gpg: Fix allocation for EXTRAHASH.
* g10/sign.c (clearsign_file): Fix the size to allocate. -- GnuPG-bug-id: 5430 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
32baa9acfb
commit
ac731dbbbd
@ -1504,7 +1504,7 @@ clearsign_file (ctrl_t ctrl,
|
|||||||
push_armor_filter (afx, out);
|
push_armor_filter (afx, out);
|
||||||
|
|
||||||
/* Prepare EXTRAHASH, so that it can be used for v5 signature. */
|
/* Prepare EXTRAHASH, so that it can be used for v5 signature. */
|
||||||
extrahash = xtrymalloc (sizeof extrahash);
|
extrahash = xtrymalloc (sizeof *extrahash);
|
||||||
if (!extrahash)
|
if (!extrahash)
|
||||||
{
|
{
|
||||||
rc = gpg_error_from_syserror ();
|
rc = gpg_error_from_syserror ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user