From 5fb32296afba5bec31c77560b794d4407080f780 Mon Sep 17 00:00:00 2001 From: Gregory Maxwell Date: Thu, 3 Sep 2015 18:41:04 +0000 Subject: [PATCH] Fixes a bug where bench_sign would fail due to passing in too small a buffer. This was introduced by the recent API change when the signature types were split. --- src/bench_sign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bench_sign.c b/src/bench_sign.c index d705f7c0f2a..dd37d8b5401 100644 --- a/src/bench_sign.c +++ b/src/bench_sign.c @@ -27,8 +27,8 @@ static void bench_sign(void* arg) { bench_sign_t *data = (bench_sign_t*)arg; unsigned char sig[74]; - int siglen = 74; for (i = 0; i < 20000; i++) { + int siglen = 74; int j; secp256k1_ecdsa_signature_t signature; CHECK(secp256k1_ecdsa_sign(data->ctx, data->msg, &signature, data->key, NULL, NULL));