1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpg: Avoid uninitialized revkey.fprlen.

* g10/keygen.c (parse_revocation_key): Store the fingerprint length in
created structure.

--

GnuPG-bug-id: 5393
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Jakub Jelen 2021-09-13 19:04:56 +02:00 committed by NIIBE Yutaka
parent ae3d0bb8e7
commit d24c5df52b

View File

@ -4003,6 +4003,8 @@ parse_revocation_key (const char *fname,
if (i != 20 && i != 32) if (i != 20 && i != 32)
goto fail; goto fail;
revkey.fprlen = i;
/* skip to the tag */ /* skip to the tag */
while(*pn && *pn!='s' && *pn!='S') while(*pn && *pn!='s' && *pn!='S')
pn++; pn++;