Skip to content

Use C23 memset_explicit() for ZEND_SECURE_ZERO() if available #15483

Open
@Girgias

Description

@Girgias

Description

This new function is designed to never be optimized away by a compiler.

I think this needs some configure checks, which I never know how to do. @petk do you know if anything fancy needs to be done?
We probably also want to amend the implementation of php_explicit_bzero() to use this if available.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions