Skip to content

Undefined behavior in mbedtls_platform_zeroize() #49

Closed
@Patater

Description

Description

Calling memset() with a non-NULL buffer argument is undefined in C. mbedtls_platform_zeroize() can end up calling memset() directly (via a function pointer). It might be good to make mbedtls_platform_zeroize() have defined behavior when the buffer argument in NULL and size is 0.

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions