Merge pull request #304

5fb3229 Fixes a bug where bench_sign would fail due to passing in too small a buffer. (Gregory Maxwell)
This commit is contained in:
Pieter Wuille 2015-09-04 16:12:21 +02:00
commit 7ab311cbb3
No known key found for this signature in database
GPG Key ID: 57896D2FF8F0B657
1 changed files with 1 additions and 1 deletions

View File

@ -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));