diff options
author | Niels Möller <nisse@lysator.liu.se> | 2004-02-07 13:34:59 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2004-02-07 13:34:59 +0100 |
commit | 1d4c0f9d6ffd692d248b734cd765798f1d5b4eee (patch) | |
tree | cf4852974214bca8c03475abead8dd48a4ba45cc /testsuite/bignum-test.c | |
parent | cf73548be59dfb9a2b53f60bee1f6b2b2c8c84dc (diff) | |
download | nettle-1d4c0f9d6ffd692d248b734cd765798f1d5b4eee.tar.gz |
* testsuite/yarrow-test.c (open_file): Likewise.
* testsuite/rsa-encrypt-test.c (test_main): Likewise.
* testsuite/bignum-test.c (test_bignum): Likewise.
Rev: src/nettle/testsuite/bignum-test.c:1.4
Rev: src/nettle/testsuite/rsa-encrypt-test.c:1.3
Rev: src/nettle/testsuite/yarrow-test.c:1.14
Diffstat (limited to 'testsuite/bignum-test.c')
-rw-r--r-- | testsuite/bignum-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/bignum-test.c b/testsuite/bignum-test.c index b86108fc..84e0483c 100644 --- a/testsuite/bignum-test.c +++ b/testsuite/bignum-test.c @@ -23,7 +23,7 @@ test_bignum(const char *hex, unsigned length, const uint8_t *base256) if (mpz_cmp(a, b)) FAIL(); - buf = alloca(length + 1); + buf = xalloc(length + 1); memset(buf, 17, length + 1); nettle_mpz_get_str_256(length, buf, a); @@ -34,6 +34,7 @@ test_bignum(const char *hex, unsigned length, const uint8_t *base256) FAIL(); mpz_clear(a); mpz_clear(b); + free(buf); } static void |