Home GnuPG

mpi: Make gcry_mpi_print work with negative zeroes.
e9b711e6ddb4Unpublished

Unpublished Commit · Learn More

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

Description

mpi: Make gcry_mpi_print work with negative zeroes.

* mpi/mpicoder.c (gcry_mpi_print): Take care of negative zero.
(gcry_mpi_aprint): Allocate at least 1 byte.
* tests/t-convert.c: New.
* tests/Makefile.am (TESTS): Add t-convert.
  • Reported-by: Christian Fuchs
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Aug 30 2013, 5:04 PM
Parents
rC800d4e01376d: Refactor the ECC code into 3 files.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCe9b711e6ddb4: mpi: Make gcry_mpi_print work with negative zeroes. (authored by Werner Koch <wk@gnupg.org>).Aug 30 2013, 5:04 PM