Skip to content

Commit

Permalink
Merge pull request #14 from dhenot/master
Browse files Browse the repository at this point in the history
Fix match for decrementing sequences causing heap corruptions
  • Loading branch information
tsyrogit authored May 15, 2017
2 parents afd7481 + bd4adda commit 0f96650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zxcvbn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1483,8 +1483,9 @@ static void SequenceMatch(ZxcMatch_t **Result, const uint8_t *Passwd, int Start,
{
++Len;
++Passwd;
break;
}
else if ((Next > SetHigh) || (Next < SetLow) || (Passwd[1] != Next))
if ((Next > SetHigh) || (Next < SetLow) || (Passwd[1] != Next))
break;
++Len;
++Passwd;
Expand Down

0 comments on commit 0f96650

Please sign in to comment.