From bf0f53270f3deaf53b887fbd90971d9789dc9311 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Mon, 30 Jan 2017 08:57:17 -0800 Subject: [PATCH] Securely zero the hash context key --- ext/hash/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/hash/hash.c b/ext/hash/hash.c index 0b05d28ad2..59d2fbfb78 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -783,7 +783,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); -- 2.40.0