mirror of
https://github.com/php/php-src.git
synced 2025-01-12 05:54:13 +08:00
Unbreak crypt() (fix bug #55439)
# If you want to remove static analyser messages, be my guest, # but please run unit tests after
This commit is contained in:
parent
9fbde3c349
commit
4f980905a0
@ -377,7 +377,7 @@ char * php_md5_crypt_r(const char *pw, const char *salt, char *out)
|
||||
/* Now make the output string */
|
||||
memcpy(passwd, MD5_MAGIC, MD5_MAGIC_LEN);
|
||||
strlcpy(passwd + MD5_MAGIC_LEN, sp, sl + 1);
|
||||
strlcat(passwd, "$", 1);
|
||||
strcat(passwd, "$");
|
||||
|
||||
PHP_MD5Final(final, &ctx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user