Skip to content

Conversation

andrejz2
Copy link

No description provided.

@andrejz2 andrejz2 requested a review from a team as a code owner September 10, 2025 15:24
Removed duplicate test cases and updated existing tests for HDMI CEC source functionality.
Added new tests for HDMI CEC source functionalities including getEnabled, setEnabled, getOSDName, setOSDName, and various key press events. Removed duplicate tests and updated existing tests for clarity.
Comment out the test for invalid logical address in sendKeyPressEvent.
Comment out the test for missing parameter in sendKeyPressEvent.
Plugin::HdmiCecSourceProcessor proc(Connection::getInstance());
proc.process(reportPowerStatus, header);
proc.process(reportPowerStatus, header);

Copy link
Contributor

Choose a reason for hiding this comment

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

Coverity Issue - Variable copied when it could be moved

"powerStatus" is passed-by-value as parameter to "PowerStatus::PowerStatus(PowerStatus const &) /implicit =default/", when it could be moved instead.

Low Impact, CWE-none
COPY_INSTEAD_OF_MOVE

How to fix

Use "std::move(""powerStatus"")" instead of "powerStatus".

Plugin::HdmiCecSourceProcessor proc(Connection::getInstance());
proc.process(reportPowerStatus, header);
proc.process(reportPowerStatus, header);

Copy link
Contributor

Choose a reason for hiding this comment

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

Coverity Issue - Uninitialized pointer read

Using uninitialized value "powerStatus.impl" when calling "PowerStatus".

High Impact, CWE-457
UNINIT

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.

2 participants