-
Couldn't load subscription status.
- Fork 25
RDKTV-35185: Add sync between ssdp_http_server_callback and gdial_ssdp_set_friendlyname #136
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?
Conversation
…p_set_friendlyname Signed-off-by: yuvaramachandran_gurusamy <[email protected]>
RDKTV-35185: Add sync between ssdp_http_server_callback and gdial_ssdp_set_friendlyname
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
* RDKECMF-213 Add CODEOWNERS file * RDKEMW-254: libsoup3 support * RDKTV-35185: Add sync between ssdp_http_server_callback and gdial_ssdp_set_friendlyname * RDKEMW-2033: Fix coverity related issue * RDK-55044: [RDKE] Implement DIAL requirement to use on EU product * RDK-56672: Fix parsing issue while restrict addtionalData url per app * RDKEMW-2278: Removal of WPEFrameworkSecurity Agent Utility * RDKEMW-4129: Prepare native build environment * RDKEMW-4129: Test * RDKEMW-4129: Prepare native build script * remmove duplicates from build_xxx script * Update gdial.cpp * RDKEMW-5927: Crash fix during soup_uri_to_string API call (#163) * RDKEMW-6891:Coverity errors fix for xdial (#166) * RDKEMW-6891: Coverity errors fix for xdial * Update gdial.cpp Fixed review comments * Deploy cla action --------- Signed-off-by: apatel859 <[email protected]> Signed-off-by: yuvaramachandran_gurusamy <[email protected]> Signed-off-by: Thamim Razith <[email protected]> Co-authored-by: Simon Chung <[email protected]> Co-authored-by: Stephen Barrett <[email protected]> Co-authored-by: apatel859 <[email protected]> Co-authored-by: apatel859 <[email protected]> Co-authored-by: hgfell683 <[email protected]> Co-authored-by: tabbas651 <[email protected]> Co-authored-by: ssitar583 <[email protected]> Co-authored-by: mukesh972 <[email protected]> Co-authored-by: rdkcmf <[email protected]> Co-authored-by: Alan Ryan <[email protected]>
Coverity Issue - Variable copied when it could be moved"appName" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appName"")" instead of "appName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appId" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appId"")" instead of "appId". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appState" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appState"")" instead of "appState". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"applicationName" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""applicationName"")" instead of "applicationName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appID" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appID"")" instead of "appID". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Parse recovery warninga value of type "int" cannot be used to initialize an entity of type "SoupServerListenOptions" Low Impact, CWE-none Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Parse recovery warningfunction "gdialServiceImpl::start_GDialServer" not emitted, consider modeling it or review parse diagnostics to improve fidelity Low Impact, CWE-none Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"applicationId" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""applicationId"")" instead of "applicationId". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Uninitialized pointer fieldNon-static class member "m_observer" is not initialized in this constructor nor in any functions that it calls. Medium Impact, CWE-457 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appId" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appId"")" instead of "appId". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Parse recovery warningargument of type "const char *" is incompatible with parameter of type "gpointer" Low Impact, CWE-none Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appId" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appId"")" instead of "appId". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appName" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appName"")" instead of "appName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"query" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""query"")" instead of "query". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Parse recovery warningargument of type "const char *" is incompatible with parameter of type "gpointer" Low Impact, CWE-none Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Parse recovery warningargument of type "const char *" is incompatible with parameter of type "gpointer" Low Impact, CWE-none Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appID" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appID"")" instead of "appID". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appName" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appName"")" instead of "appName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Uninitialized scalar variableUsing uninitialized value "payload". Field "payload.user_param1" is uninitialized when calling "sendRequest". High Impact, CWE-457 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Uninitialized scalar variableUsing uninitialized value "payload". Field "payload.data_param" is uninitialized when calling "sendRequest". High Impact, CWE-457 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"error" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""error"")" instead of "error". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appName" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appName"")" instead of "appName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appID" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appID"")" instead of "appID". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"friendlyname" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""friendlyname"")" instead of "friendlyname". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appName" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appName"")" instead of "appName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"payload" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""payload"")" instead of "payload". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appID" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appID"")" instead of "appID". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appName" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appName"")" instead of "appName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Uninitialized scalar variableUsing uninitialized value "payload". Field "payload.data_param" is uninitialized when calling "sendRequest". High Impact, CWE-457 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appName" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appName"")" instead of "appName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"strAddDataUrl" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""strAddDataUrl"")" instead of "strAddDataUrl". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"AddDataUrl" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""AddDataUrl"")" instead of "AddDataUrl". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"activation" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""activation"")" instead of "activation". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Parse recovery warningargument of type "const char *" is incompatible with parameter of type "gpointer" Low Impact, CWE-none Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Uninitialized scalar variableUsing uninitialized value "payload". Field "payload.data_param" is uninitialized when calling "sendRequest". High Impact, CWE-457 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Parse recovery warningargument of type "const char *" is incompatible with parameter of type "gpointer" Low Impact, CWE-none Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"parameter" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""parameter"")" instead of "parameter". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Parse recovery warningargument of type "const char *" is incompatible with parameter of type "gpointer" Low Impact, CWE-none Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Uninitialized scalar variableUsing uninitialized value "payload". Field "payload.data_param" is uninitialized when calling "sendRequest". High Impact, CWE-457 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"strPayLoad" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""strPayLoad"")" instead of "strPayLoad". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"friendlyname" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""friendlyname"")" instead of "friendlyname". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appId" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appId"")" instead of "appId". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appName" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appName"")" instead of "appName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appName" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appName"")" instead of "appName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Parse recovery warningargument of type "const char *" is incompatible with parameter of type "gpointer" Low Impact, CWE-none Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"strQuery" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""strQuery"")" instead of "strQuery". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appName" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appName"")" instead of "appName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appName" is copied in call to copy assignment for class "std::string", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appName"")" instead of "appName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"powerState" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""powerState"")" instead of "powerState". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Variable copied when it could be moved"appName" is passed-by-value as parameter to "std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const &)", when it could be moved instead. Low Impact, CWE-none How to fixUse "std::move(""appName"")" instead of "appName". Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
| { | ||
| RequestHandlerPayload payload; | ||
| payload.event = UPDATE_MANUFACTURER_NAME; | ||
| payload.manufacturer = manufacturer; |
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 - Variable copied when it could be moved
"manufacturer" is copied in call to copy assignment for class "std::string", when it could be moved instead.
Low Impact, CWE-none
COPY_INSTEAD_OF_MOVE
How to fix
Use "std::move(""manufacturer"")" instead of "manufacturer".
| { | ||
| RequestHandlerPayload payload; | ||
| payload.event = UPDATE_MODEL_NAME; | ||
| payload.model = model; |
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 - Variable copied when it could be moved
"model" is copied in call to copy assignment for class "std::string", when it could be moved instead.
Low Impact, CWE-none
COPY_INSTEAD_OF_MOVE
How to fix
Use "std::move(""model"")" instead of "model".
| RequestHandlerPayload payload; | ||
| payload.event = UPDATE_MODEL_NAME; | ||
| payload.model = model; | ||
| gdialImplInstance->sendRequest(payload); |
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 - Uninitialized scalar variable
Using uninitialized value "payload". Field "payload.data_param" is uninitialized when calling "sendRequest".
High Impact, CWE-457
UNINIT
| RequestHandlerPayload payload; | ||
| payload.event = UPDATE_MANUFACTURER_NAME; | ||
| payload.manufacturer = manufacturer; | ||
| gdialImplInstance->sendRequest(payload); |
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 - Uninitialized scalar variable
Using uninitialized value "payload". Field "payload.data_param" is uninitialized when calling "sendRequest".
High Impact, CWE-457
UNINIT
RDKTV-35185: Add sync between ssdp_http_server_callback and gdial_ssdp_set_friendlyname
Signed-off-by: yuvaramachandran_gurusamy [[email protected]]