From 8f879c2887e166da2ec959ce78078f7b84ebfdf9 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Tue, 29 Oct 2019 08:20:11 +0000 Subject: [PATCH] Fix array size in bench_ecmult --- src/bench_ecmult.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bench_ecmult.c b/src/bench_ecmult.c index 505702056b5be..1d463f92d0bee 100644 --- a/src/bench_ecmult.c +++ b/src/bench_ecmult.c @@ -232,7 +232,7 @@ static void bench_ecmult_multi_teardown(void* arg, int iters) { static void generate_scalar(uint32_t num, secp256k1_scalar* scalar) { secp256k1_sha256 sha256; - unsigned char c[11] = {'e', 'c', 'm', 'u', 'l', 't', 0, 0, 0, 0}; + unsigned char c[10] = {'e', 'c', 'm', 'u', 'l', 't', 0, 0, 0, 0}; unsigned char buf[32]; int overflow = 0; c[6] = num;