diff options
author | tsyrogit <tsyrogit@users.noreply.github.com> | 2017-05-15 22:46:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-15 22:46:54 +0100 |
commit | 0f966503bc944ac693e48c615c7e0f5e8d35086c (patch) | |
tree | 361dbdcbe2e011d7fbd201def57b405de792dd18 | |
parent | afd7481dfc80bdcf09166d9831cfad8122313165 (diff) | |
parent | bd4addab51dc36f23b83e4efe86c2dae74ed81ac (diff) | |
download | zxcvbn-c-0f966503bc944ac693e48c615c7e0f5e8d35086c.tar.gz |
Merge pull request #14 from dhenot/master
Fix match for decrementing sequences causing heap corruptions
-rw-r--r-- | zxcvbn.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |