-
Notifications
You must be signed in to change notification settings - Fork 4
Rebase and merge #157
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: topic/RDK-60308
Are you sure you want to change the base?
Rebase and merge #157
Conversation
Disable the AccountID Special validation for RDKB
RDK-60308-[tr69hostif, RFC] RDK Coverity Defect Resolution for Device Management
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.
Pull request overview
Adjusts RFC/XConf processing to apply certain validation and AccountID-handling logic only when RDKB_SUPPORT is not defined.
Changes:
- Wraps “reject empty config values” logic behind
#if !defined(RDKB_SUPPORT)inprocessXconfResponseConfigDataPart(). - Wraps the AccountID
"Unknown"special-case handling behind#if !defined(RDKB_SUPPORT)inisConfigValueChange().
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| #if !defined(RDKB_SUPPORT) | ||
| if (newValue.empty()) | ||
| { | ||
| RDK_LOG(RDK_LOG_INFO, LOG_RFCMGR, "[%s][%d] EMPTY value for %s is rejected\n", __FUNCTION__, __LINE__, newKey.c_str()); | ||
| continue; | ||
| } | ||
| #endif |
Copilot
AI
Jan 23, 2026
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.
The empty-value rejection is now compiled out for RDKB_SUPPORT, but RDKB’s set_RFCProperty() converts non-string types using std::stoi/stoul/stof/etc without any exception handling. If XConf sends an empty string for a numeric/bool parameter, this will throw and can terminate the process. Consider keeping the empty-value guard for RDKB too (at least for non-string params) or adding safe parsing/try-catch with a logged failure + skip update.
| #if !defined(RDKB_SUPPORT) | |
| if (newValue.empty()) | |
| { | |
| RDK_LOG(RDK_LOG_INFO, LOG_RFCMGR, "[%s][%d] EMPTY value for %s is rejected\n", __FUNCTION__, __LINE__, newKey.c_str()); | |
| continue; | |
| } | |
| #endif | |
| if (newValue.empty()) | |
| { | |
| RDK_LOG(RDK_LOG_INFO, LOG_RFCMGR, "[%s][%d] EMPTY value for %s is rejected\n", __FUNCTION__, __LINE__, newKey.c_str()); | |
| continue; | |
| } |
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
No description provided.