aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/ks-engine.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-03-23 09:07:59 +0000
committerWerner Koch <[email protected]>2011-03-28 09:08:03 +0000
commit4206a2bd486f02072c8ba2731f4fade46c2a5581 (patch)
tree709aa8d770d2beec34d755b357e021bb9d9e52f6 /dirmngr/ks-engine.h
parentMake use of gcry_kdf_derive. (diff)
downloadgnupg-4206a2bd486f02072c8ba2731f4fade46c2a5581.tar.gz
gnupg-4206a2bd486f02072c8ba2731f4fade46c2a5581.zip
Detect premature EOF while parsing corrupted key packets.
This helps in the case of an unknown key algorithm with a corrupted packet which claims a longer packet length. This used to allocate the announced packet length and then tried to fill it up without detecting an EOF, thus taking quite some time. IT is easy to fix, thus we do it. However, there are many other ways to force gpg to use large amount of resources; thus as before it is strongly suggested that the sysadm uses ulimit do assign suitable resource limits to the gpg process. Suggested by Timo Schulz.
Diffstat (limited to 'dirmngr/ks-engine.h')
0 files changed, 0 insertions, 0 deletions