Skip to content

Commit

Permalink
Fixes a bug where bench_sign would fail due to passing in too small a…
Browse files Browse the repository at this point in the history
… buffer.

This was introduced by the recent API change when the signature types were split.
  • Loading branch information
gmaxwell committed Sep 3, 2015
1 parent 5eb4356 commit 5fb3229
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 5fb3229

Please sign in to comment.