gpg: Make sure a user ID packet has always a terminating Nul in memory.
authorWerner Koch <wk@gnupg.org>
Fri, 1 Jul 2016 13:18:59 +0000 (15:18 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 1 Jul 2016 14:27:43 +0000 (16:27 +0200)
commitd8bce478be3ae9e401841a77d189ef3c81ccb757
tree20cc4a72bd223e514c19a7f3c55bab0ab7eaf24d
parent681c6ef757a73fc1a63a552186e038db179494aa
gpg: Make sure a user ID packet has always a terminating Nul in memory.

* g10/keygen.c (write_uid): Avoid overflow.
--

Also the actual length if the user ID is given by LEN, using NAME
diretcly is often more convenient.
g10/keygen.c
g10/packet.h