mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
agent: Avoid uninitialized buffer.
* agent/sexp-secret.c (fixup_when_ecc_private_key): Initialize buffer to avoid its use on unexpected inputs. -- GnuPG-bug-id: 5393 Co-authored-by: NIIBE Yutaka <gniibe@fsij.org> Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
parent
50f32eb066
commit
ae3d0bb8e7
@ -29,7 +29,7 @@ gpg_error_t
|
||||
fixup_when_ecc_private_key (unsigned char *buf, size_t *buflen_p)
|
||||
{
|
||||
const unsigned char *s;
|
||||
char curve_name[256];
|
||||
char curve_name[256] = { 0, };
|
||||
size_t n;
|
||||
size_t buflen = *buflen_p;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user