mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
MFH
This commit is contained in:
parent
652c7096b2
commit
6c50fa955b
@ -229,7 +229,7 @@ PHP_FUNCTION(mhash_keygen_s2k)
|
||||
keystruct.salt = salt;
|
||||
keystruct.salt_size = salt_len;
|
||||
|
||||
ret = emalloc(bytes + 1);
|
||||
ret = safe_emalloc(1, bytes, 1);
|
||||
|
||||
if (mhash_keygen_ext(KEYGEN_S2K_SALTED, keystruct, ret, bytes, password, password_len) >= 0) {
|
||||
ret[bytes] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user