[Pkg-gnupg-commit] [gnupg2] 40/102: g10: Allow User ID length >= 256.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Fri Jun 17 00:14:52 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit db1ecc8212defdd183abbb6b1407fcc8d2dc9552
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Wed Jun 1 20:59:09 2016 +0900
g10: Allow User ID length >= 256.
* build-packet.c (do_user_id): Call write_header2 with HDRLEN not set.
--
Reported-by: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
GnuPG-bug-id: 2374
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
g10/build-packet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/g10/build-packet.c b/g10/build-packet.c
index 4bfc2ac..1353a86 100644
--- a/g10/build-packet.c
+++ b/g10/build-packet.c
@@ -329,7 +329,7 @@ do_user_id( IOBUF out, int ctb, PKT_user_id *uid )
}
else
{
- write_header2( out, ctb, uid->len, 2 );
+ write_header2( out, ctb, uid->len, 0 );
rc = iobuf_write( out, uid->name, uid->len );
}
return rc;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list