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

Fix clamd_valgrind tests when built with clang-8 #236

Merged

Conversation

ragusaa
Copy link
Contributor

@ragusaa ragusaa commented Jul 30, 2021

Since strcpy only writes a null-byte to the first terminating byte,
valgrind is throwing errors about uninitialized reads for strncpy's
that could potentially read beyond the null-byte. Initializing
the whole array to 0 resolves this.

Since strcpy only writes a null-byte to the first terminating byte,
valgrind is throwing errors about uninitialized reads for strncpy's
that could potentially read beyond the null-byte.  Initializing
the whole array to 0 resolves this.
@micahsnyder micahsnyder self-requested a review July 30, 2021 19:46
@micahsnyder micahsnyder merged commit ee15dd7 into Cisco-Talos:main Jul 30, 2021
21 of 24 checks passed
@micahsnyder
Copy link
Contributor

I also cherry-picked this to rel/0.104

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.

None yet

2 participants