While fuzzing I found that the following file would attempt to use 4GB of RAM
and abort.
$ ./g10/gpg2 --import ~/Dropbox/gnupg/04c4b9c1
Fatal error: Cannot allocate memory
Aborted
I am testing with 2.0.22 , this does not occur in 1.4.16-1ubuntu2.1 packaged in
Ubuntu 14.04
System Details:
AMD64
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
Found with the fuzzer American Fuzzy Lop by lcamtuf.