Skip to content

[libc] Expand usage of LIBC_ADD_NULL_CHECKS. #111546

Closed
@nickdesaulniers

Description

@nickdesaulniers

1896ee3 added a config option to check for nullptr args to math.h functions. I think we could expand the usage of this macro to additional functions that accept pointer args that are defined by the standard to be non-null (or UB occurs in the case of NULL) (example: memcpy). This would allow us to provide a hardened config.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions