Update rrdEventProcess.c#197
Open
Abhinavpv28 wants to merge 14 commits into
Open
Conversation
Contributor
Author
|
@copilot please work on the comment added in the PR |
Code Coverage Summary |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates processIssueTypeInStaticProfile() in the remote debugger event processing flow by adding an inline comment near the fallback path that checks the installed package when an issue isn’t found in the static JSON profile.
Changes:
- Added an inline note/TODO comment before calling
processIssueTypeInInstalledPackage()when the issue is not present in the static profile.
| else | ||
| { | ||
| RDK_LOG(RDK_LOG_DEBUG, LOG_REMDEBUG, "[%s:%d] Issue Data Not found in Static JSON File... \n", __FUNCTION__, __LINE__); | ||
| //before this i have to check length of pIssueNode->Node or pIssueNode->Node+pIssueNode->subNode is less than 34 if true only i have to proceed |
Agent-Logs-Url: https://github.com/rdkcentral/remote_debugger/sessions/ddda5e68-d84d-4a89-ab64-02935f00a57f Co-authored-by: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com>
Agent-Logs-Url: https://github.com/rdkcentral/remote_debugger/sessions/efaba2d2-7e7e-4927-bbe3-106dbb286e2b Co-authored-by: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com>
Contributor
|
b'## Copyright scan failure |
Agent-Logs-Url: https://github.com/rdkcentral/remote_debugger/sessions/efaba2d2-7e7e-4927-bbe3-106dbb286e2b Co-authored-by: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com>
Agent-Logs-Url: https://github.com/rdkcentral/remote_debugger/sessions/efaba2d2-7e7e-4927-bbe3-106dbb286e2b Co-authored-by: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com>
Agent-Logs-Url: https://github.com/rdkcentral/remote_debugger/sessions/efaba2d2-7e7e-4927-bbe3-106dbb286e2b Co-authored-by: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com>
Agent-Logs-Url: https://github.com/rdkcentral/remote_debugger/sessions/efaba2d2-7e7e-4927-bbe3-106dbb286e2b Co-authored-by: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com>
Agent-Logs-Url: https://github.com/rdkcentral/remote_debugger/sessions/efaba2d2-7e7e-4927-bbe3-106dbb286e2b Co-authored-by: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com>
Code Coverage Summary |
Comment on lines
137
to
142
| if(profileName && strlen(profileName) > 0){ | ||
| if (strlen(profileName) > 34 ){ | ||
| length =0; | ||
| } | ||
| length = prefixlen + strlen(profileName) + suffixlen + 1; | ||
| } |
Comment on lines
+455
to
+464
| { // Static Profile JSON Parsing or Read Fail | ||
| RDK_LOG(RDK_LOG_ERROR, LOG_REMDEBUG, "[%s:%d]: Static Profile Parse/Read failed... %s\n", __FUNCTION__, __LINE__, RRD_JSON_FILE); | ||
| processIssueTypeInInstalledPackage(rbuf, pIssueNode); | ||
| if (isIssueNodeLengthValidForInstalledPackage(pIssueNode)) | ||
| { | ||
| processIssueTypeInInstalledPackage(rbuf, pIssueNode); | ||
| } | ||
| else | ||
| { | ||
| logInstalledPackageFallbackSkip(pIssueNode); | ||
| } |
Comment on lines
+400
to
+401
| RDK_LOG(RDK_LOG_ERROR, LOG_REMDEBUG, "[%s:%d]: Issue node length %zu must be less than %u for installed package fallback\n", | ||
| __FUNCTION__, __LINE__, issueLen, ISSUE_NODE_LENGTH_LIMIT); |
Comment on lines
138
to
141
| if (strlen(profileName) > 34 ){ | ||
| length =0; | ||
| } | ||
| length = prefixlen + strlen(profileName) + suffixlen + 1; |
|
|
||
| if(profileName && strlen(profileName) > 0){ | ||
| if (strlen(profileName) > 34 ){ | ||
| length =0; |
Contributor
There was a problem hiding this comment.
Coverity issue no longer present as of: undefined
Show issue
Coverity Issue - Unused value
Assigning value "0" to "length" here, but that stored value is overwritten before it can be used.
Low Impact, CWE-563
UNUSED_VALUE
Code Coverage Summary |
Code Coverage Summary |
Comment on lines
137
to
141
| if(profileName && strlen(profileName) > 0){ | ||
| if (strlen(profileName) > RRD_DYNAMIC_PROFILE_MAX_LENGTH ){ | ||
| return 0; | ||
| } | ||
| length = prefixlen + strlen(profileName) + suffixlen + 1; |
Code Coverage Summary |
1 similar comment
Code Coverage Summary |
Code Coverage Summary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.