Skip to content

Conversation

@Vismalskumar0
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 30, 2026 09:40
@Vismalskumar0 Vismalskumar0 requested a review from a team as a code owner January 30, 2026 09:40
Copy link
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 RFC manager handling in rfc_xconf_handler.cpp, focusing on small cleanups around DB-clear property setting and download error handling.

Changes:

  • Updated clearDB() to pass clearValue via std::move when setting TR-181 ClearDB flags.
  • Removed an unused curl pointer and its associated cleanup block in DownloadRuntimeFeatutres().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

set_RFCProperty(name, ClearDB, clearValue);
set_RFCProperty(name, BootstrapClearDB, clearValue);
set_RFCProperty(name, ClearDB, std::move(clearValue));
set_RFCProperty(name, BootstrapClearDB, std::move(clearValue));
Copy link
Contributor

@rdkcmf-jenkins rdkcmf-jenkins Jan 30, 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 - Using a moved object

"clearValue" is used after it has been already moved.

High Impact, CWE-457
USE_AFTER_MOVE

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 30, 2026 10:19
Copy link
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 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 30, 2026 10:30
Copy link
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 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 1989 to 1987
if(file_dwnl.hashData != nullptr)
{
free(file_dwnl.hashData);
hashParam_t* hashData = (hashParam_t*)file_dwnl.hashData;
if (hashData->hashvalue != NULL)
{
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

file_dwnl.hashData is cleaned up at the end of the function, but there are multiple early return paths above (e.g., cert selector init failure / getMtlscert failures, and the branch where pDwnLoc->pvOut / pHeaderDwnLoc->pvOut are null) that bypass this cleanup and leak hashParam (and its strdup’d members). Consider refactoring to a single exit path (e.g., goto cleanup/RAII) so hashData is freed on all returns.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@copilot open a new pull request to apply changes based on this feedback

Copy link

Copilot AI commented Jan 30, 2026

@Vismalskumar0 I've opened a new pull request, #164, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 5 commits January 30, 2026 10:46
…tern

Co-authored-by: Vismalskumar0 <188226757+Vismalskumar0@users.noreply.github.com>
…n cleanup

Co-authored-by: Vismalskumar0 <188226757+Vismalskumar0@users.noreply.github.com>
Co-authored-by: Vismalskumar0 <188226757+Vismalskumar0@users.noreply.github.com>
Co-authored-by: Vismalskumar0 <188226757+Vismalskumar0@users.noreply.github.com>
Fix memory leak in DownloadRuntimeFeatutres from early return paths
@github-actions
Copy link


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


1 out of 2 committers have signed the CLA.
✅ (Vismalskumar0)[https://github.com/Vismalskumar0]
❌ @Copilot
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

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.

3 participants