Skip to content

Commit

Permalink
Fix env memory zeroing
Browse files Browse the repository at this point in the history
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@huawei.com>
  • Loading branch information
Rafal Stefanowski committed Jun 13, 2024
1 parent 7c8ac29 commit 9c03f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env/posix/ocf_env.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static inline void env_secure_free(const void *ptr, size_t size)
{
if (ptr) {
#if SECURE_MEMORY_HANDLING
memset(ptr, size, 0);
memset(ptr, 0, size);
/* TODO: flush CPU caches ? */
ENV_BUG_ON(munlock(ptr));
#endif
Expand Down

0 comments on commit 9c03f01

Please sign in to comment.