Home GnuPG

mpi: Improve gcry_mpi_invm to detect bad input.
d8e99a04dba6Unpublished

Unpublished Commit · Learn More

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

Description

mpi: Improve gcry_mpi_invm to detect bad input.

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

Without this patch the function may enter and endless loop.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Aug 5 2013, 6:58 PM
Parents
rC10dfa41b43a9: Correct checks for ecc secret key
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCd8e99a04dba6: mpi: Improve gcry_mpi_invm to detect bad input. (authored by Werner Koch <wk@gnupg.org>).Aug 5 2013, 6:58 PM