mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
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…
x
Reference in New Issue
Block a user