mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* parse-packet.c (read_protected_v3_mpi): Make sure to stop
reading even for corrupted packets. * keygen.c (generate_user_id): Need to allocate one byte more. Reported by Felix von Leitner.
This commit is contained in:
parent
9a1d79f67f
commit
9e4a5071a6
3 changed files with 9 additions and 2 deletions
|
@ -1958,7 +1958,7 @@ generate_user_id()
|
|||
if( !p )
|
||||
return NULL;
|
||||
n = strlen(p);
|
||||
uid = xmalloc_clear( sizeof *uid + n - 1 );
|
||||
uid = xmalloc_clear( sizeof *uid + n );
|
||||
uid->len = n;
|
||||
strcpy(uid->name, p);
|
||||
uid->ref = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue