-
Notifications
You must be signed in to change notification settings - Fork 128
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
Create Coverity issue in ProcessInfo.cpp #1786
base: master
Are you sure you want to change the base?
Conversation
Coverity Issue - Logically dead codeExecution cannot reach this statement: "buffer[index] = '\0';". Medium Impact, CWE-561 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Logically dead codeExecution cannot reach this statement: "buffer[index] = c;". Medium Impact, CWE-561 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
@@ -546,7 +546,8 @@ namespace Core { | |||
char buffer[bufferSize]; | |||
while (true) { | |||
char c; | |||
size_t readChars = fread(&c, 1, 1, cmdFile); | |||
size_t readChars = 0; | |||
fread(&c, 1, 1, cmdFile); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverity Issue - Ignoring number of bytes read
"fread(void *, size_t, size_t, FILE *)" returns the number of bytes read, but it is ignored.
Medium Impact, CWE-252
CHECKED_RETURN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks functionality! Do not merge, but I guess, from the comments, it is just to test coverity and there is no need to merge this..
No description provided.