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

[BUG] CWE: 664 #13254

Open
Ionescu-Ioan opened this issue May 9, 2024 · 1 comment
Open

[BUG] CWE: 664 #13254

Ionescu-Ioan opened this issue May 9, 2024 · 1 comment

Comments

@Ionescu-Ioan
Copy link

Description of the bug:

After I used Cppcheck to perform static analysis of the source code of Redis I discoverd the following error:
CWE 664 : "va_list ‘_cpy’ used before va_start() was called" in deps/hiredis/hiredis.c

I'm not sure yet if it's a false positive or not, but if it's really a bug, it might affect the good functionality of the project.

@sundb
Copy link
Collaborator

sundb commented May 9, 2024

i think it is a false positive.
the code copies ap to _cpy via va_copy(), so it doesnt need a va_start().

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

No branches or pull requests

2 participants