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
Parents
rCaf23ab5c5482: Fix building with --disable-asm on x86
Branches
Unknown
Tags
Unknown