aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-06-02 13:14:49 +0000
committerWerner Koch <[email protected]>2016-06-02 13:57:59 +0000
commitd837f6b0eadb14ea08c1c6030b4d6adaaee8778e (patch)
tree89536458c205d01a245a45787db035d504e93ec9 /agent/command.c
parentcommon: New function openpgp_is_curve_supported. (diff)
downloadgnupg-d837f6b0eadb14ea08c1c6030b4d6adaaee8778e.tar.gz
gnupg-d837f6b0eadb14ea08c1c6030b4d6adaaee8778e.zip
gpg: Do not abort on certain invalid packets.
* g10/build-packet.c (write_fake_data): Check for non-opaque data. * g10/seskey.c (do_encode_md): Return NULL instead of abort. -- The first may happen if the usage flags of an algorithm do not match the allowed usage. When writing a backsig this would lead to a log_bug in libgcrypt due to the use of a regular MPI as opaque data. The second may happen with all kind of invalid data. It is easy to avoid an abort, though. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'agent/command.c')
0 files changed, 0 insertions, 0 deletions