diff options
author | Daniel Kahn Gillmor <[email protected]> | 2019-05-14 04:05:42 +0000 |
---|---|---|
committer | Daniel Kahn Gillmor <[email protected]> | 2019-05-14 04:13:35 +0000 |
commit | e4a158faacd67e15e87183fb48e8bd0cc70f90a8 (patch) | |
tree | 7aac45e062dd1ce041e80e1fc7492d2270d03ab7 /dirmngr/workqueue.c | |
parent | gpg: Change update_keysig_packet to replace SHA-1 by SHA-256. (diff) | |
download | gnupg-dkg/fix-T4501.tar.gz gnupg-dkg/fix-T4501.zip |
agent: correct length for uri and comment on 64-bit big-endian platformsdkg/fix-T4501
* agent/findkey.c (agent_public_key_from_file): pass size_t as int to
gcry_sexp_build_array's %b.
--
This is only a problem on big-endian systems where size_t is not the
same size as an int. It was causing failures on debian's s390x,
powerpc64, and sparc64 platforms.
There may well be other failures with %b on those platforms in the
codebase, and it probably needs an audit.
Once you have a key in private-keys-v1.d/$KEYGRIP.key with a comment
or a uri of reasonable length associated with it, this fix can be
tested with:
gpg-agent --server <<<"READKEY $KEYGRIP"
On the failing platforms, the printed comment will be of length 0.
Gnupg-bug-id: 4501
Signed-off-by: Daniel Kahn Gillmor <[email protected]>
Diffstat (limited to 'dirmngr/workqueue.c')
0 files changed, 0 insertions, 0 deletions