Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ReplayProtector tries to shift by >32 bits.

  • Loading branch information...
commit a33af261e9ddbcd314ea28190b18b4a438af3532 1 parent e37259f
Caleb James DeLisle authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  crypto/ReplayProtector.h
View
2  crypto/ReplayProtector.h
@@ -44,7 +44,7 @@ static inline bool ReplayProtector_checkNonce(const uint32_t nonce, struct Repla
if (offset > 20) {
context->baseOffset += offset - 20;
- context->bitfield = context->bitfield >> (offset - 20) | (1 << 20);
+ context->bitfield = ((offset > 51) ? 0 : context->bitfield >> (offset - 20)) | (1 << 20);
return true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.