Skip to content

Commit

Permalink
Fix comparison bug caused by casting reported by cryptofuzz.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Jul 15, 2021
1 parent 4ef8f9c commit 7ed8e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dv/relic_dv_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ int dv_cmp(const dig_t *a, const dig_t *b, int size) {
}

int dv_cmp_const(const dig_t *a, const dig_t *b, int size) {
int r = 0;
dig_t r = 0;

for (int i = 0; i < size; i++) {
r |= a[i] ^ b[i];
Expand Down

0 comments on commit 7ed8e70

Please sign in to comment.