Gnupg cannot handle extremely large keys on 32 bit Linux

Werner Koch wk at gnupg.org
Mon Apr 16 17:40:07 CEST 2007


Hi,

I think I found the problem:  In g10/gpg.h you find

  /* Number of bits we accept when reading or writing MPIs. */
  #define MAX_EXTERN_MPI_BITS 16384

when writing it out with build-packet.c:mpi_write, we use a buffer if
that length.  It should error out for too long values but there might be
a corner case.  To check whether it works, change that constant to a
larger or smaller value and watch what results.


Salam-Shalom,

   Werner




More information about the Gnupg-users mailing list