Skip to content

RDKEMW-21913 : Fix coverity issues (from copilot) in subttxrend-dbus - #100

Open
krithikasvraman wants to merge 1 commit into
developfrom
topic/RDKEMW-21913
Open

RDKEMW-21913 : Fix coverity issues (from copilot) in subttxrend-dbus#100
krithikasvraman wants to merge 1 commit into
developfrom
topic/RDKEMW-21913

Conversation

@krithikasvraman

Copy link
Copy Markdown
Contributor

Reason for change: Fix coverity issues in subttxrend-dbus
Test Procedure: Regression tests
Risks: Low
Signed-off-by:krithika_venkataraman@comcast.com

Reason for change: Fix coverity issues in subttxrend-dbus
Test Procedure: Regression tests
Risks: Low
Signed-off-by:krithika_venkataraman@comcast.com
Copilot AI review requested due to automatic review settings July 20, 2026 07:45
@krithikasvraman
krithikasvraman requested a review from a team as a code owner July 20, 2026 07:45

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 pull request fixes Coverity-reported issues in the subttxrend-dbus component by correcting a Jansson json_pack format string and ensuring GError objects are properly logged and freed on DBus interface export failures.

Changes:

  • Fixes an invalid Jansson json_pack format string for the subtitle status response encoding.
  • Enhances DBus export failure logging to include the underlying GError message when present.
  • Frees GError on DBus export failure paths to avoid leaks.

Reviewed changes

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

File Description
subttxrend-dbus/src/JsonHelper.cpp Fixes the JSON packing format string so the status response encodes correctly.
subttxrend-dbus/src/DbusHandlerTeletext.cpp Logs GError details on export failure and frees GError before cleanup/return.
subttxrend-dbus/src/DbusHandlerSubtitles.cpp Logs GError details on export failure and frees GError before cleanup/return.

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

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