Fix stack buffer overflow in zxcvbn.

The array PossChars is filled with a 48 byte string plus a trailing zero
byte. Therefore it needs to be 49 bytes long.
This commit is contained in:
Hanno 2017-03-02 11:58:18 +01:00 committed by Janek Bevendorff
parent 52ab7b8865
commit 3e76f7af0f

View File

@ -496,7 +496,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;
/**********************************************************************************