diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-12 21:09:18 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-12 21:32:42 -0400 |
commit | 4ff170d7b1cbe4074cb85271b82a8963eccc8286 (patch) | |
tree | 459640c64a49ee1342338647cd67570cac605516 /src/test/test_crypto.c | |
parent | 491b6de1684e519d1fec870a5b46a4bb540cbc13 (diff) | |
download | tor-4ff170d7b1cbe4074cb85271b82a8963eccc8286.tar.gz tor-4ff170d7b1cbe4074cb85271b82a8963eccc8286.zip |
Fix warnings about passing uninitialized buffers into functions
Most of these buffers were never actually inspected, but it's still
bad style.
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r-- | src/test/test_crypto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c index c540aaed6c..5d079e9f30 100644 --- a/src/test/test_crypto.c +++ b/src/test/test_crypto.c @@ -2595,6 +2595,8 @@ test_crypto_ed25519_testvectors(void *arg) ed25519_signature_t sig; int sign; + memset(&curvekp, 0xd0, sizeof(curvekp)); + #define DECODE(p,s) base16_decode((char*)(p),sizeof(p),(s),strlen(s)) #define EQ(a,h) test_memeq_hex((const char*)(a), (h)) |