Skip to content

Comments

Session server app changed to shared ptr to avoid invalid ptrs. Some minor changes added to make code safer.#437

Merged
skywojciechowskim merged 7 commits intomasterfrom
ServerManagerCrashFixThirdTry
Jan 28, 2026
Merged

Session server app changed to shared ptr to avoid invalid ptrs. Some minor changes added to make code safer.#437
skywojciechowskim merged 7 commits intomasterfrom
ServerManagerCrashFixThirdTry

Conversation

@skywojciechowskim
Copy link
Contributor

Summary: Session server app changed to shared ptr to avoid invalid ptrs. Some minor changes added to make code safer.
Type: Fix
Test Plan: UT/CT, Fullstack
Jira: VPLAY-12448

@github-actions
Copy link

Pull request must be merged with a description containing the required fields,

Summary:
Type: Feature/Fix/Cleanup
Test Plan:
Jira:

If there is no jira releated to this change, please put 'Jira: NO-JIRA'.

Description can be changed by editing the top comment on your pull request and making a new commit.

@github-actions
Copy link

serverManager/common/source/SessionServerAppManager.cpp:399:13: style: Condition 'm_healthcheckService' is always false [knownConditionTrueFalse]
if (m_healthcheckService)
^
serverManager/common/source/SessionServerAppManager.cpp:397:39: note: Assuming container is not empty
for (const auto &kSessionServer : m_sessionServerApps)
^
serverManager/common/source/SessionServerAppManager.cpp:399:13: note: Condition 'm_healthcheckService' is always false
if (m_healthcheckService)
^
nofile:0:0: information: Active checkers: 161/592 (use --checkers-report= to see details) [checkersReport]

@github-actions
Copy link

Coverage statistics of your commit:
Lines coverage stays unchanged and is: 85.2%
Functions coverage stays unchanged and is: 92.5%

@rdkcmf-jenkins
Copy link
Contributor

rdkcmf-jenkins commented Jan 27, 2026

Coverity Issue - Use of auto that causes a copy

Using the "auto" keyword without an "&" causes the copy of an object of type "std::string".

Low Impact, CWE-none
AUTO_CAUSES_COPY

How to fix

Use "const auto &" instead of "auto".

Issue location

This issue was discovered outside the diff for this Pull Request. You can find it at:
serverManager/common/source/SessionServerAppManager.cpp:516

@rdkcmf-jenkins
Copy link
Contributor

rdkcmf-jenkins commented Jan 27, 2026

Coverity Issue - Use of auto that causes a copy

Using the "auto" keyword without an "&" causes the copy of an object of type "std::string".

Low Impact, CWE-none
AUTO_CAUSES_COPY

How to fix

Use "const auto &" instead of "auto".

Issue location

This issue was discovered outside the diff for this Pull Request. You can find it at:
serverManager/common/source/SessionServerAppManager.cpp:494

{
for (const auto &tag : m_eventTags)
{
m_ipcLoop->channel()->unsubscribe(tag);
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 - Unchecked return value

Calling "unsubscribe" without checking return value (as is done elsewhere 1 out of 1 times).

Medium Impact, CWE-252
CHECKED_RETURN

@github-actions
Copy link

Coverage statistics of your commit:
Lines coverage stays unchanged and is: 85.2%
Functions coverage stays unchanged and is: 92.5%

1 similar comment
@github-actions
Copy link

Coverage statistics of your commit:
Lines coverage stays unchanged and is: 85.2%
Functions coverage stays unchanged and is: 92.5%

@skywojciechowskim skywojciechowskim merged commit 19f5628 into master Jan 28, 2026
49 of 51 checks passed
@skywojciechowskim skywojciechowskim deleted the ServerManagerCrashFixThirdTry branch January 28, 2026 07:44
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants