Skip to content

Commit

Permalink
Merge pull request #737 from Stumble/yumin/fix-alias
Browse files Browse the repository at this point in the history
fix: incorrect alias check brought from snarkjs. (possible security vulnerability)
  • Loading branch information
cedoor authored Apr 12, 2024
2 parents 2aee16e + 8e246c4 commit a4a6837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contracts/contracts/base/SemaphoreVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ contract SemaphoreVerifier {

assembly {
function checkField(v) {
if iszero(lt(v, q)) {
if iszero(lt(v, r)) {
mstore(0, 0)
return(0, 0x20)
}
Expand Down

0 comments on commit a4a6837

Please sign in to comment.