1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-14 00:19:50 +02:00
gnupg/kbx
Werner Koch b6507bb80e 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 <wk@gnupg.org>
2014-10-09 20:19:05 +02:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
kbxutil.c Switch to the libgpg-error provided estream. 2014-08-26 17:47:54 +02:00
keybox-blob.c gpg: Take care to use pubring.kbx if it has ever been used. 2014-10-09 19:10:32 +02:00
keybox-defs.h gpg: Take care to use pubring.kbx if it has ever been used. 2014-10-09 19:10:32 +02:00
keybox-dump.c kbx: Fix handling of overlong keys. 2014-10-09 20:19:05 +02:00
keybox-errors.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
keybox-file.c kbx: Fix handling of overlong keys. 2014-10-09 20:19:05 +02:00
keybox-init.c gpg: Take care to use pubring.kbx if it has ever been used. 2014-10-09 19:10:32 +02:00
keybox-openpgp.c kbx: Add experimental support for EDDSA. 2014-05-07 12:39:43 +02:00
keybox-search-desc.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
keybox-search.c gpg: Fix uninitialized access to search descindex with gpg keyboxes. 2014-05-14 18:13:11 +02:00
keybox-update.c gpg: Take care to use pubring.kbx if it has ever been used. 2014-10-09 19:10:32 +02:00
keybox-util.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
keybox.h gpg: Take care to use pubring.kbx if it has ever been used. 2014-10-09 19:10:32 +02:00
Makefile.am Prepare for newer automake versions. 2013-06-27 09:27:32 +02:00
Manifest The keybox gets now compressed after 3 hours and ephemeral 2004-04-26 08:09:25 +00:00
mkerrors Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00