Browse Source

Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Securely zero the hash context key
pull/2357/head
Sara Golemon 9 years ago
parent
commit
3475c0c035
  1. 2
      ext/hash/hash.c

2
ext/hash/hash.c

@ -894,7 +894,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…
Cancel
Save