Skip to content

Topic/kp rdkb 59901#110

Closed
dharshini555 wants to merge 7 commits intodevelopfrom
topic/kp-RDKB-59901
Closed

Topic/kp rdkb 59901#110
dharshini555 wants to merge 7 commits intodevelopfrom
topic/kp-RDKB-59901

Conversation

@dharshini555
Copy link
Contributor

No description provided.

Reason for change: Testing purpose
Test Procedure: There should not be crash and regression issues
Risks: Medium
Priority: P0
Signed-off-by: PriyaDharshini_Kathiravan <priyakathiravan05@gmail.com>
Reason for change: Testing purpose
Test Procedure: There should not be crash and regression issues
Risks: Medium
Priority: P0
Signed-off-by: PriyaDharshini_Kathiravan <priyakathiravan05@gmail.com>
Reason for change: Testing purpose
Test Procedure: There should not be crash and regression issues
Risks: Medium
Priority: P0
Signed-off-by: PriyaDharshini_Kathiravan <priyakathiravan05@gmail.com>
return NULL;
}
T2Debug("Checking for events in event queue , event count = %d\n", t2_queue_count(eQueue));
if(t2_queue_count(eQueue) > 0)
Copy link
Contributor

@rdkcmf-jenkins rdkcmf-jenkins Jun 12, 2025

Choose a reason for hiding this comment

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

Coverity issue no longer present as of: undefined

Show issue

Coverity Issue - Double unlock

"pthread_mutex_unlock" unlocks "sTDMutex" while it is unlocked.

Medium Impact, CWE-765
LOCK

ret = pthread_cond_signal(&erCond);
if(ret != 0) // pthread_cond _signal failed so after unlocking the mutex it will return
{
T2Error("%s pthread_cond_signal for erCond failed with error code : %d\n", __FUNCTION__, ret);
Copy link
Contributor

@rdkcmf-jenkins rdkcmf-jenkins Jun 12, 2025

Choose a reason for hiding this comment

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

Coverity issue no longer present as of: undefined

Show issue

Coverity Issue - Thread deadlock

Calling "pthread_mutex_lock" acquires lock "sTDMutex" while holding lock "erMutex" (count: 1 / 2).

Medium Impact, CWE-833
ORDER_REVERSAL

Copy link
Contributor

@shibu-kv shibu-kv left a comment

Choose a reason for hiding this comment

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

In general please do address coverity defects.

{
T2Debug("Calling rbus_getExt for %s \n", paramNames[0]);
if(RBUS_ERROR_SUCCESS != rbus_getExt(t2bus_handle, 1, (const char**)paramNames, &paramValCount, &rbusPropertyValues))
int retries = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't do retries for timeouts. Timeouts can be for legit cases as well.



void publishReportUploadStatus(char* status)
void publishReportUploadStatus(char* status) //needs revisit
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a tricky handling and would need some refactoring. For the time being keep a local copy of data in the function an release once done.

Reason for change: Testing purpose
Test Procedure: There should not be crash and regression issues
Risks: Medium
Priority: P0
Signed-off-by: PriyaDharshini_Kathiravan <priyakathiravan05@gmail.com>
pthread_mutex_unlock(&erMutex);
if(pthread_mutex_unlock(&erMutex) != 0)
{
T2Error("%s pthread_mutex_unlock for erMutex failed\n", __FUNCTION__);
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 - Double unlock

"pthread_mutex_unlock" unlocks "sTDMutex" while it is unlocked.

Medium Impact, CWE-765
LOCK

@@ -110,7 +129,11 @@ void T2ER_PushDataWithDelim(char* eventInfo, char* user_data)
{
T2Error("Missing delimiter in the event received\n");
}
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 - Double unlock

"pthread_mutex_unlock" unlocks "sTDMutex" while it is unlocked.

Medium Impact, CWE-765
LOCK

@shibu-kv shibu-kv closed this Oct 22, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Oct 22, 2025
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