aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/validate.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-10-09 18:19:05 +0000
committerWerner Koch <[email protected]>2014-10-09 18:19:05 +0000
commitb6507bb80e4e4aa5c85a918fdcf5c28cccb75081 (patch)
tree6892ed42e79aea6233da23439283079a02e9a279 /dirmngr/validate.c
parentgpg: Take care to use pubring.kbx if it has ever been used. (diff)
downloadgnupg-b6507bb80e4e4aa5c85a918fdcf5c28cccb75081.tar.gz
gnupg-b6507bb80e4e4aa5c85a918fdcf5c28cccb75081.zip
kbx: Fix handling of overlong keys.
* kbx/keybox-file.c (IMAGELEN_LIMIT): Change limit from 10^6 to 2MiB. (_keybox_read_blob2): Skip too long record records. (_keybox_write_blob): Do not accept too long record. * kbx/keybox-dump.c (file_stats_s): Add field skipped_long_blobs. (_keybox_dump_file): Print new counter. (_keybox_dump_file): Skip too long records. ---- To test this feature you may set the limit back to 1MiB and use key F7F0E70F307D56ED which is in my local copy close to 2MiB. Without this patch it was possible to import the key but access to that key and all keys stored after it was not possible. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions