Home GnuPG
Diffusion GnuPG cd53cdbc3774

mpi: Improve mpi_invm to detect bad input.
cd53cdbc3774Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

mpi: Improve mpi_invm to detect bad input.

* mpi/mpi-inv.c (mpi_invm): Return 0 for bad input.

Without this patch the function may enter an endless loop. This is a
backport from libgcrypt.

Details

Provenance
wernerAuthored on Sep 11 2014, 5:06 PM
Parents
rGb89f57fe5db3: mpi: Suppress set-but-unused-variables warnings.
Branches
Unknown
Tags
Unknown