Home GnuPG

Fix ubsan warnings for i386 build

Description

Fix ubsan warnings for i386 build

* mpi/mpicoder.c (_gcry_mpi_set_buffer) [BYTES_PER_MPI_LIMB == 4]: Cast
"*p--" values to mpi_limb_t before left shifting.
* tests/t-lock.c (main): Cast 'time(NULL)' to unsigned type.
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Jan 30 2021, 7:11 PM
wernerCommitted on Feb 4 2021, 12:44 PM
Parents
rC1d312bc65846: ecc: Add checking key for ECDSA.
Branches
Unknown
Tags
Unknown