Skip to content

RDKEMW-22730 : Fix coverity issue on devicesettings - #268

Open
balav08 wants to merge 6 commits into
developfrom
feature/RDKEMW-22730
Open

RDKEMW-22730 : Fix coverity issue on devicesettings#268
balav08 wants to merge 6 commits into
developfrom
feature/RDKEMW-22730

Conversation

@balav08

@balav08 balav08 commented Jul 30, 2026

Copy link
Copy Markdown

Reason for change: Fixing coverity reported issues.
Test Procedure: Refer ticket.
Risks: Low
Priority: P2
version: minor

Reason for change: Fixing coverity reported issues.
Test Procedure: Refer ticket.
Risks: Low
Priority: P2
version: minor

Signed-off-by: balaji velmurugan <balaji_velmurugan@comcast.com>
Copilot AI lite review requested due to automatic review settings July 30, 2026 14:09
@balav08
balav08 requested a review from a team as a code owner July 30, 2026 14:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 addresses Coverity-reported findings in the device settings audio components, aiming to remove redundant code and improve special-member-function completeness for a public type.

Changes:

  • Removed a redundant assignment to _DolbyVolumeMode in an exception path (keeps the existing default behavior).
  • Added move operations to AudioStereoMode to address a Coverity rule-of-five style warning.

Reviewed changes

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

File Description
rpc/srv/dsAudio.c Removes redundant assignment in nested exception handling during Dolby Volume mode initialization.
ds/include/audioStereoMode.hpp Adds move constructor/assignment to AudioStereoMode (public API surface).

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

Comment thread rpc/srv/dsAudio.c
Comment thread ds/include/audioStereoMode.hpp Outdated
Copilot AI review requested due to automatic review settings August 3, 2026 06:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 no new comments.

Suppressed comments (1)

rpc/srv/dsAudio.c:1511

  • The inner catch(...) now silently swallows failures when both the persisted and default audio.DolbyVolumeMode lookups fail. That makes it hard to diagnose persistence/default-store issues, and the inline comment referencing a specific line number will become stale as the file changes. Consider logging the fallback-to-default behavior instead (while keeping the redundant assignment removed).
                           catch(...) {
                               //coverity fix: UNUSED_VALUE - removed redundant assignment, already initialized to "FALSE" at line 1498
                           }

Copilot AI review requested due to automatic review settings August 7, 2026 11:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 no new comments.

Suppressed comments (1)

rpc/srv/dsAudio.c:1511

  • The new INT_DEBUG line is indented with stray tabs/spaces, which is inconsistent with the surrounding block and can create noisy diffs or fail whitespace/style checks. Align it with the existing indentation in this function.
                           catch(...) {
							   INT_DEBUG("audio.DolbyVolumeMode system default not found. Using default: FALSE\n");
                           }

Copilot AI review requested due to automatic review settings August 7, 2026 11:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 no new comments.

Merge pull request #277 from rdkcentral/develop
Copilot AI review requested due to automatic review settings August 7, 2026 11:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 no new comments.

Copilot AI review requested due to automatic review settings August 12, 2026 10:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 no new comments.

Suppressed comments (1)

rpc/srv/dsAudio.c:1506

  • bDolbyVolumeOverrideCheck is never set to false anymore (only initialized to true and later set to true again), which makes the override logic ineffective and changes behavior: Volume Leveller initialization will now run even when audio.DolbyVolumeMode is present but Volume Leveller is not configured. This also makes the new log message misleading.
                           _DolbyVolumeMode = device::HostPersistence::getInstance().getProperty("audio.DolbyVolumeMode");
                           INT_DEBUG("audio.DolbyVolumeMode found in persistence: %s. bDolbyVolumeOverrideCheck will be set by VolumeLeveller check\n", _DolbyVolumeMode.c_str());
                       }

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