mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Merge branch 'PHP-7.1'
* PHP-7.1: Securely zero the hash context key
This commit is contained in:
commit
f149f62d58
1 changed files with 1 additions and 1 deletions
|
@ -889,7 +889,7 @@ static void php_hash_dtor(zend_resource *rsrc) /* {{{ */
|
|||
}
|
||||
|
||||
if (hash->key) {
|
||||
memset(hash->key, 0, hash->ops->block_size);
|
||||
ZEND_SECURE_ZERO(hash->key, hash->ops->block_size);
|
||||
efree(hash->key);
|
||||
}
|
||||
efree(hash);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue