Skip to content

Commit

Permalink
group_parse: use secp256k1_memcmp_var instead of memcmp
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasnick committed Oct 12, 2023
1 parent e9d522f commit 6a3aae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/secp256k1.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ static void secp256k1_ge_serialize_ext(unsigned char *out33, secp256k1_ge* ge) {
static int secp256k1_ge_parse_ext(secp256k1_ge* ge, const unsigned char *in33) {
unsigned char zeros[33] = { 0 };

if (memcmp(in33, zeros, sizeof(zeros)) == 0) {
if (secp256k1_memcmp_var(in33, zeros, sizeof(zeros)) == 0) {
secp256k1_ge_set_infinity(ge);
return 1;
}
Expand Down

0 comments on commit 6a3aae8

Please sign in to comment.