Skip to content

Commit

Permalink
ecdsa_adaptor: fix too small buffer in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasnick committed Jun 16, 2021
1 parent b37bf84 commit 01dfb69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ecdsa_adaptor/tests_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ void adaptor_tests(void) {
CHECK(secp256k1_ecdsa_adaptor_verify(ctx, adaptor_sig, &enckey, msg, &enckey) == 0);
CHECK(secp256k1_ecdsa_adaptor_verify(ctx, adaptor_sig, &pubkey, msg, &pubkey) == 0);
{
unsigned char adaptor_sig_tmp[65];
unsigned char adaptor_sig_tmp[162];
memcpy(adaptor_sig_tmp, adaptor_sig, sizeof(adaptor_sig_tmp));
rand_flip_bit(&adaptor_sig_tmp[1], sizeof(adaptor_sig_tmp) - 1);
CHECK(secp256k1_ecdsa_adaptor_verify(ctx, adaptor_sig_tmp, &pubkey, msg, &enckey) == 0);
Expand Down

0 comments on commit 01dfb69

Please sign in to comment.