Make gcry_mpi_cmp more robust for opaque mpis
Open, NormalPublic

Assigned To
Authored By
werner
Apr 25 2022, 3:10 PM
Subscribers

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.