common: When classifying keyids and fingerprints, reject trailing junk.
authorNeal H. Walfield <neal@g10code.com>
Fri, 6 Nov 2015 11:31:16 +0000 (12:31 +0100)
committerNeal H. Walfield <neal@g10code.com>
Fri, 6 Nov 2015 11:31:16 +0000 (12:31 +0100)
commitf99830b72812395da5451152bdd2f2d90a7cb7fb
treef22d6bfe30bf584b20354f1815988b862378d3ac
parente8c53fca954d33366e3494a6d4eecc3868282bcc
common: When classifying keyids and fingerprints, reject trailing junk.

* common/userids.c (classify_user_id): Trim any trailing whitespace.
Before assuming that a hexstring corresponds to a key id or
fingerprint, make sure that it is NUL terminated.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
GnuPG-bug-id: 1206
Debian-bug-id: 575084
common/userids.c