mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-01 16:33:02 +01: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
@ -1,3 +1,10 @@
|
||||
2007-01-15 Werner Koch <wk@g10code.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2006-12-14 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* options.skel: Tweak some examples to match reality and update
|
||||
|
@ -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;
|
||||
|
@ -1533,7 +1533,7 @@ read_protected_v3_mpi (IOBUF inp, unsigned long *length)
|
||||
buf = p = xmalloc (2 + nbytes);
|
||||
*p++ = nbits >> 8;
|
||||
*p++ = nbits;
|
||||
for (; nbytes && length; nbytes--, --*length)
|
||||
for (; nbytes && *length; nbytes--, --*length)
|
||||
*p++ = iobuf_get (inp);
|
||||
if (nbytes)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user