Page MenuHome GnuPG

Make gcry_mpi_cmp more robust for opaque mpis
Open, NormalPublic

Description

It is possible to create an opaque MPI with a pointer of NULL but with NBITS > 0. The result is that gcry_mpi_cmp does a memcmp against a NULL pointer. This case should be caught. For now callers should take care not to create such an opaque MPI.