The previous broken StrCopy used in the older implementation of CryptHashPassword would only write the trailing '\0' character if the copied string had a size greater than zero. This change ONLY affects empty usernames and passwords, which is basically useless for anything other than testing (however, it can get DirtSand into a bad state -- see the PR there for details).
The previous broken
StrCopy
used in the older implementation ofCryptHashPassword
would only write the trailing '\0' character if the copied string had a size greater than zero. This change ONLY affects empty usernames and passwords, which is basically useless for anything other than testing (however, it can get DirtSand into a bad state -- see the PR there for details).