-
Notifications
You must be signed in to change notification settings - Fork 7
Topic/coverity2 #80
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
base: develop
Are you sure you want to change the base?
Topic/coverity2 #80
Conversation
|
|
Coverity Issue - Resource leakHandle variable "sockfd" going out of scope leaks the handle. High Impact, CWE-404 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
|
|
||
| std::string response = "HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n"; | ||
| send(connection, response.c_str(), response.size(), 0); | ||
| ssize_t bytesSent = send(connection, response.c_str(), response.size(), 0); |
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 - Resource leak
Handle variable "connection" going out of scope leaks the handle.
High Impact, CWE-404
RESOURCE_LEAK
| EVENT_SUBSCRIBE(0, _T("uploadComplete"), _T("org.rdk.ScreenCapture"), message); | ||
| EVENT_SUBSCRIBE_1(0, _T("uploadComplete"), _T("org.rdk.ScreenCapture"), message); | ||
|
|
||
| EXPECT_EQ(Core::ERROR_NONE, handler.Invoke(connection, _T("uploadScreenCapture"), _T("{\"url\":\"http://127.0.0.1:11111\"}"), response)); |
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 - Resource leak
Handle variable "connection" going out of scope leaks the handle.
High Impact, CWE-404
RESOURCE_LEAK
No description provided.