Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add memset vuln #1

Merged
merged 1 commit into from
Jul 13, 2022
Merged

add memset vuln #1

merged 1 commit into from
Jul 13, 2022

Conversation

neo413001
Copy link
Owner

No description provided.

@@ -558,6 +558,8 @@ void func_pointer_014 ()
void func_pointer_015_func_001(func_pointer_015_s_001* st)
{
memset(st, 0, sizeof(*st));
memset(st, 0, sizeof(*st));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using memset and then deleting that data can cause sensitive information to still be in the buffer. Use memset_s() instead. (Line 561)

⚪️ This finding does not block your pull request.
🙈 From c.lang.security.insecure-use-memset.insecure-use-memset.

@neo413001 neo413001 merged commit 01d4382 into master Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant