mirror of git://git.gnupg.org/gnupg.git
gpg: Fix buffer overflow.
* g10/keydb.c (keydb_search_desc_dump): Fix buffer overflow.
--
Signed-off-by: Neal H. Walfield <neal@walfield.org>
Regression-due-to: 11ec478
Note: this buffer overflow will only occur if --debug=lookup is passed
to gpg and a search by fingerprint is done.
This commit is contained in:
parent
25f0f053cd
commit
1605e34fc3
|
@ -470,7 +470,7 @@ char *
|
|||
keydb_search_desc_dump (struct keydb_search_desc *desc)
|
||||
{
|
||||
char b[MAX_FORMATTED_FINGERPRINT_LEN + 1];
|
||||
char fpr[MAX_FINGERPRINT_LEN + 1];
|
||||
char fpr[2 * MAX_FINGERPRINT_LEN + 1];
|
||||
|
||||
switch (desc->mode)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue