Skip to content

CMFSUPPORT-3699 Coverity TEST. DO NOT MERGE#188

Closed
scthunderbolt wants to merge 4 commits intodevelopfrom
feature/test-workflows
Closed

CMFSUPPORT-3699 Coverity TEST. DO NOT MERGE#188
scthunderbolt wants to merge 4 commits intodevelopfrom
feature/test-workflows

Conversation

@scthunderbolt
Copy link
Contributor

DO NOT MERGE

@scthunderbolt scthunderbolt requested a review from a team as a code owner January 22, 2026 12:45
Copilot AI review requested due to automatic review settings January 22, 2026 12:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the appId parameter from a logging statement in the applicationStateChanged method. However, the format string still expects 4 arguments while only 3 are now provided, creating a critical bug.

Changes:

  • Removed appId.c_str() argument from a GDIAL_LOGINFO call in the applicationStateChanged function

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

@@ -74,7 +74,6 @@ class GDialCastObject
{
GDIAL_LOGINFO("AppName[%s] AppID[%s] State[%s] Error[%s]",
AppObj->appName.c_str(),
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

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

The format string expects 4 arguments (AppName, AppID, State, Error) but only 3 arguments are now provided after removing the appId parameter. This will cause undefined behavior and potentially a crash when the logging function tries to read the missing argument. Either remove the "AppID[%s]" placeholder from the format string or restore the appId.c_str() argument.

Suggested change
AppObj->appName.c_str(),
AppObj->appName.c_str(),
AppObj->appId.c_str(),

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings January 22, 2026 13:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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


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

@@ -74,7 +74,6 @@ class GDialCastObject
{
GDIAL_LOGINFO("AppName[%s] AppID[%s] State[%s] Error[%s]",
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 - Missing argument to printf format specifier

No argument for format specifier "%s".

Medium Impact, CWE-685
PRINTF_ARGS

@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2026
@scthunderbolt scthunderbolt deleted the feature/test-workflows branch January 23, 2026 10:30
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.

2 participants