Skip to content

Commit

Permalink
libkirk: fix buffer overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaspider committed Oct 13, 2020
1 parent 9a9787e commit f7a1b7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/libkirk/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ static void generate_ecdsa(u8 *outR, u8 *outS, u8 *k, u8 *hash)

bn_from_mon(R, ec_N, 21);
bn_from_mon(S, ec_N, 21);
memcpy(outR,R+1,0x20);
memcpy(outS,S+1,0x20);
memcpy(outR,R+1,20);
memcpy(outS,S+1,20);
}

// Signing =
Expand Down

0 comments on commit f7a1b7a

Please sign in to comment.