Skip to content

Commit

Permalink
Merge pull request bitcoin#304
Browse files Browse the repository at this point in the history
5fb3229 Fixes a bug where bench_sign would fail due to passing in too small a buffer. (Gregory Maxwell)
  • Loading branch information
sipa committed Sep 4, 2015
2 parents 5eb4356 + 5fb3229 commit 7ab311c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bench_sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7ab311c

Please sign in to comment.