Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reason for change: telemetry Turn key changes for RDK-E #34

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

nanimatta
Copy link

Test Procedure: Refer JIRA
Risks: Medium
Priority: P1

@nanimatta nanimatta requested a review from a team as a code owner February 27, 2025 13:54
Test Procedure: Refer JIRA
Risks: Medium
Priority: P1

Signed-off-by: nanimatta <[email protected]>
@rdkcmf-jenkins
Copy link

Coverity Issue - Data race condition

Accessing "isXconfInit" without holding lock "xcThreadMutex". Elsewhere, "isXconfInit" is written to with "xcThreadMutex" held 1 out of 2 times (1 of these accesses strongly imply that it is necessary).

Medium Impact, CWE-366
MISSING_LOCK

Issue location

This issue was discovered outside the diff for this Pull Request. You can find it at:
source/xconf-client/xconfclient.c:1068

@rdkcmf-jenkins
Copy link

Coverity Issue - Check of thread-shared field evades lock acquisition

Thread1 sets "isXconfInit" to a new value. Now the two threads have an inconsistent view of "isXconfInit" and updates to fields correlated with "isXconfInit" may be lost.

High Impact, CWE-543
LOCK_EVASION

How to fix

Guard the modification of "isXconfInit" and the read used to decide whether to modify "isXconfInit" with the same set of locks.

Issue location

This issue was discovered outside the diff for this Pull Request. You can find it at:
source/xconf-client/xconfclient.c:1070

@@ -26,6 +26,7 @@
#include <ctype.h>
#include <pthread.h>

#include <pthread.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate includes. Already present in previous line

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