From ac731dbbbd21f53d2f6bf69343e6bf553ebc9dad Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 11 May 2021 14:49:06 +0900 Subject: [PATCH] gpg: Fix allocation for EXTRAHASH. * g10/sign.c (clearsign_file): Fix the size to allocate. -- GnuPG-bug-id: 5430 Signed-off-by: NIIBE Yutaka --- g10/sign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/sign.c b/g10/sign.c index 80e6ce2e8..c50b6b4a7 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -1504,7 +1504,7 @@ clearsign_file (ctrl_t ctrl, push_armor_filter (afx, out); /* Prepare EXTRAHASH, so that it can be used for v5 signature. */ - extrahash = xtrymalloc (sizeof extrahash); + extrahash = xtrymalloc (sizeof *extrahash); if (!extrahash) { rc = gpg_error_from_syserror ();