Repository navigation
Coverity- Medium and low priority issues (#524) - #565
Merged
Merged
Conversation
Summary: Fix for issues-AUTO_CAUSES_COPY, BAD_CHECK_OF_WAIT_COND, CHECKED_RETURN, COPY_INSTEAD_OF_MOVE, DEADCODE, PW.INCLUDE_RECURSION, PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE, UNCAUGHT_EXCEPT, UNINIT_CTOR Type: Fix Test Plan: UT/CT, Fullstack Jira: RDKEMW-17769
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses a collection of Coverity medium/low findings across the Rialto codebase, primarily by reducing unnecessary copies, improving condition-variable usage, and tightening error/return-value handling.
Changes:
- Fixes potential missed/spurious wakeups in WebAudio buffer writing by switching to a predicate-based
wait_forand adding a completion counter. - Removes unnecessary copies / useless
const-on-return patterns (e.g., move from queue, passshared_ptrby const-ref, avoid proto copies). - Improves robustness/observability around system lookups and GStreamer event handling (bounded buffers for
getpwnam_r/getgrnam_r, checkgstElementSendEventreturn, add fatal error handling in sim main).
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| wrappers/source/OcdmSession.cpp | Removes useless const on value return for key status conversion. |
| tests/unittests/media/server/gstplayer/webAudioPlayer/GstWebAudioPlayerTest.cpp | Updates test helper to increment new write completion counter; adds include. |
| tests/componenttests/server/tests/webAudio/WebAudioTestMethods.cpp | Clears SHM region after mapping to ensure deterministic initial state. |
| serverManager/service/source/ConfigReader.cpp | Avoids shared_ptr copies by passing JSON root/wrappers by const-ref; formatting adjustments. |
| serverManager/service/include/ConfigReader.h | Header signature updates to match const-ref parameter passing. |
| serverManager/serverManagerSim/RialtoServerManagerSim.cpp | Wraps main logic in try/catch and returns non-zero on fatal errors. |
| serverManager/common/source/SessionServerAppManager.cpp | Avoids copying app name by binding to const reference. |
| media/server/main/source/MainThread.cpp | Moves task info out of queue instead of copying. |
| media/server/main/interface/IMainThread.h | Removes erroneous self-include. |
| media/server/ipc/source/MediaPipelineModuleService.cpp | Avoids copying codec data proto before extracting fields. |
| media/server/gstplayer/source/tasks/webAudio/WriteBuffer.cpp | Increments completion counter under mutex on write completion. |
| media/server/gstplayer/source/GstWebAudioPlayer.cpp | Uses predicate-based wait keyed off completion counter; fixes namespace closing. |
| media/server/gstplayer/source/GstGenericPlayer.cpp | Fixes sync-off value assignment; checks and logs step-event send result. |
| media/server/gstplayer/include/WebAudioPlayerContext.h | Adds writeCompletionCounter to support robust CV waiting. |
| media/public/include/IMediaPipeline.h | Removes useless const qualifiers from value returns. |
| ipc/common/source/NamedSocket.cpp | Uses heap buffer for re-entrant lookups with fallback size; improves logging for “not found” cases. |
| common/source/LinuxUtils.cpp | Same lookup-buffer hardening and logging improvements as NamedSocket. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
23
to
25
| #include "WebAudioUtil.h" | ||
| #include <chrono> | ||
| #include <thread> |
balasaraswathy-n
merged commit Jul 17, 2026
523f9ed
into
feature/RDKEMW-16516_1
33 of 34 checks passed
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary: Fix for issues-AUTO_CAUSES_COPY, BAD_CHECK_OF_WAIT_COND, CHECKED_RETURN, COPY_INSTEAD_OF_MOVE, DEADCODE, PW.INCLUDE_RECURSION, PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE, UNCAUGHT_EXCEPT, UNINIT_CTOR Type: Fix
Test Plan: UT/CT, Fullstack
Jira: RDKEMW-17769