Skip to content

Update rrdEventProcess.c#197

Open
Abhinavpv28 wants to merge 14 commits into
developfrom
feature/rdmcrash
Open

Update rrdEventProcess.c#197
Abhinavpv28 wants to merge 14 commits into
developfrom
feature/rdmcrash

Conversation

@Abhinavpv28
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 13, 2026 11:31
@Abhinavpv28 Abhinavpv28 requested a review from a team as a code owner May 13, 2026 11:31
@Abhinavpv28
Copy link
Copy Markdown
Contributor Author

@copilot please work on the comment added in the PR

@github-actions
Copy link
Copy Markdown

Code Coverage Summary

                               Total:|83.5%   5890|97.0%  1531|    -      0

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/rrdEventProcess.c Outdated
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
Copy link
Copy Markdown

Copilot AI commented May 13, 2026

@copilot please work on the comment added in the PR

Addressed in commit efa4d22: removed the unclear inline note from src/rrdEventProcess.c as requested by the PR review comment. No UI changes were involved in this update.

Copilot AI review requested due to automatic review settings May 13, 2026 11:43
@Abhinavpv28 Abhinavpv28 review requested due to automatic review settings May 13, 2026 11:43
@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Copyright scan failure
Commit: 899b304
Report detail: https://gist.github.com/rdkcmf-jenkins/e04e078f7dae01113094a4e3ba839f2b'

Copilot AI review requested due to automatic review settings May 13, 2026 11:45
@Abhinavpv28 Abhinavpv28 review requested due to automatic review settings May 13, 2026 11:45
Copilot AI review requested due to automatic review settings May 13, 2026 11:46
@Abhinavpv28 Abhinavpv28 review requested due to automatic review settings May 13, 2026 11:46
Copilot AI review requested due to automatic review settings May 13, 2026 11:48
@Abhinavpv28 Abhinavpv28 review requested due to automatic review settings May 13, 2026 11:48
Copilot AI review requested due to automatic review settings May 13, 2026 11:49
@Abhinavpv28 Abhinavpv28 review requested due to automatic review settings May 13, 2026 11:49
Copilot AI review requested due to automatic review settings May 13, 2026 11:50
@Abhinavpv28 Abhinavpv28 review requested due to automatic review settings May 13, 2026 11:50
Copilot AI review requested due to automatic review settings May 13, 2026 12:01
@github-actions
Copy link
Copy Markdown

Code Coverage Summary

                               Total:|83.2%   5917|96.8%  1534|    -      0

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread src/rrdDynamic.c
Comment on lines 137 to 142
if(profileName && strlen(profileName) > 0){
if (strlen(profileName) > 34 ){
length =0;
}
length = prefixlen + strlen(profileName) + suffixlen + 1;
}
Comment thread src/rrdEventProcess.c Outdated
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 thread src/rrdEventProcess.c Outdated
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 thread src/rrdDynamic.c Outdated
Comment on lines 138 to 141
if (strlen(profileName) > 34 ){
length =0;
}
length = prefixlen + strlen(profileName) + suffixlen + 1;
Comment thread src/rrdDynamic.c Outdated

if(profileName && strlen(profileName) > 0){
if (strlen(profileName) > 34 ){
length =0;
Copy link
Copy Markdown
Contributor

@rdkcmf-jenkins rdkcmf-jenkins May 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copilot AI review requested due to automatic review settings May 13, 2026 12:30
@github-actions
Copy link
Copy Markdown

Code Coverage Summary

                               Total:|83.2%   5917|96.8%  1534|    -      0

@github-actions
Copy link
Copy Markdown

Code Coverage Summary

                               Total:|83.5%   5892|97.0%  1531|    -      0

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread src/rrdDynamic.c
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;
@github-actions
Copy link
Copy Markdown

Code Coverage Summary

                               Total:|83.5%   5892|97.0%  1531|    -      0

1 similar comment
@github-actions
Copy link
Copy Markdown

Code Coverage Summary

                               Total:|83.5%   5892|97.0%  1531|    -      0

@github-actions
Copy link
Copy Markdown

Code Coverage Summary

                               Total:|84.1%   6226|97.3%  1660|    -      0

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

Successfully merging this pull request may close these issues.

4 participants