summaryrefslogtreecommitdiff
path: root/tests/t-mpi-bit.c
AgeCommit message (Collapse)AuthorFilesLines
2014-05-09mpi: Fix a subtle bug setting spurious bits with in mpi_set_bit.Werner Koch1-0/+54
* mpi/mpi-bit.c (_gcry_mpi_set_bit, _gcry_mpi_set_highbit): Clear allocated but not used bits before resizing. * tests/t-mpi-bits.c (set_bit_with_resize): New. -- Reported-by: Martin Sewelies. This bug is probably with us for many years. Probably due to different memory allocation patterns, it did first revealed itself with 1.6. It could be the reason for other heisenbugs. Signed-off-by: Werner Koch <wk@gnupg.org>
2013-06-26Make gpg-error replacement defines more robust.Werner Koch1-1/+1
* configure.ac (AH_BOTTOM): Move GPG_ERR_ replacement defines to ... * src/gcrypt-int.h: new file. * src/visibility.h, src/cipher.h: Replace gcrypt.h by gcrypt-int.h. * tests/: Ditto for all test files. -- Defining newer gpg-error codes in config.h was not a good idea, because config.h is usually included before gpg-error.h and thus gpg-error.h would be double defines to lead to faulty code there like typedef enum { [...] 191 = 191, [...] };
2011-02-04Nuked almost all trailing whitespace.Werner Koch1-7/+7
Check and install the standard git pre-commit hook.
2010-06-10Allow transient-key for ecdsa.Werner Koch1-8/+15
Fix a bug in a test.
2008-08-20Implemented gcry_mpi_lshift.Werner Koch1-3/+116
Reordered some code in mpi-bit.c
2006-08-04Fixed gcry_mpi_set_bit and enhanced mpi_rshift.Werner Koch1-0/+241
Cleaned up andom-daemon initialization.