Skip to content

Commit f149f62

Browse files
committed
Merge branch 'PHP-7.1'
* PHP-7.1: Securely zero the hash context key
2 parents 46bdb63 + 3475c0c commit f149f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/hash/hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ static void php_hash_dtor(zend_resource *rsrc) /* {{{ */
889889
}
890890

891891
if (hash->key) {
892-
memset(hash->key, 0, hash->ops->block_size);
892+
ZEND_SECURE_ZERO(hash->key, hash->ops->block_size);
893893
efree(hash->key);
894894
}
895895
efree(hash);

0 commit comments

Comments
 (0)