Zero-bit MPIs are not properly handled in some cases; this bug causes GPG to busy-loop
indefinitely. Prompt review would be appreciated.
Call-stack:
mpihelp_rshift (in gpg) 1103
mpihelp_add_n (in gpg) 693
mpi_rshift (in gpg) 222
mpi_invm (in gpg) 127
mpi_add (in gpg) 116
mpi_test_bit (in gpg) 71
The tarball contains the files necessary to replicate; replicate.sh contains the
command line invocation of GnuPG.
This bug was found by Michał Zalewski's american-fuzzy-lop; it has been replicated with
the version of GnuPG packaged with Ubuntu 14.04 x86/x86_64, as well as against versions
built directly from GnuPG 1.4.18 source tarballs on Ubuntu 14.04 x86/x86_64 and OSX.