aboutsummaryrefslogtreecommitdiffstats
path: root/common/userids.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-05-21 14:25:56 +0000
committerWerner Koch <[email protected]>2019-05-21 14:28:11 +0000
commitd32963eeb33fd3053d40a4e7071fb0e8b28a8651 (patch)
treefeeb0a286b2f1ea737fbfc56a5493bfc5179f708 /common/userids.c
parentagent: For SSH key, don't put NUL-byte at the end. (diff)
downloadgnupg-d32963eeb33fd3053d40a4e7071fb0e8b28a8651.tar.gz
gnupg-d32963eeb33fd3053d40a4e7071fb0e8b28a8651.zip
gpg: Do not allow creation of user ids larger than our parser allows.
* g10/parse-packet.c: Move max packet lengths constants to ... * g10/packet.h: ... here. * g10/build-packet.c (do_user_id): Return an error if too data is too large. * g10/keygen.c (write_uid): Return an error for too large data. -- This can lead to keyring corruption becuase we expect that our parser is abale to parse packts created by us. Test case is gpg --batch --passphrase 'abc' -v \ --quick-gen-key $(yes 'a'| head -4000|tr -d '\n') GnuPG-bug-id: 4532 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/userids.c')
0 files changed, 0 insertions, 0 deletions