aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHanno <hanno@gentoo.org>2017-03-01 20:28:35 +0100
committerHanno <hanno@gentoo.org>2017-03-01 20:28:35 +0100
commitad2ef761986e500fc7e657413ae3e09f791d855e (patch)
tree44d89c039927f347cdb134978e94a64d2724a121
parent8afae756194587a43a610e5d0d706f3f2b1f2576 (diff)
downloadzxcvbn-c-ad2ef761986e500fc7e657413ae3e09f791d855e.tar.gz
Fix one byte buffer overflow in ListPossibleChars().
The array PossChars, part of DictWork_t, needs to be one byte larger to hold the trailing zero byte.
-rw-r--r--zxcvbn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zxcvbn.c b/zxcvbn.c
index f9678c5..2e15680 100644
--- a/zxcvbn.c
+++ b/zxcvbn.c
@@ -493,7 +493,7 @@ typedef struct
uint8_t LeetCnv[sizeof L33TCnv / LEET_NORM_MAP_SIZE + 1];
/* uint8_t LeetChr[3]; */
uint8_t First;
- uint8_t PossChars[48];
+ uint8_t PossChars[49];
} DictWork_t;
/**********************************************************************************