Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions source/MsgBusTestServer/ssp_main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/************************************************************************************

Check failure on line 1 in source/MsgBusTestServer/ssp_main.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'source/MsgBusTestServer/ssp_main.c' (Match: rdkb/components/opensource/ccsp/CcspDmCli/rdkb/components/opensource/ccsp/CcspDmCli/2102, 307 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/CcspDmCli/+archive/rdk-dev-2102.tar.gz, file: source/MsgBusTestServer/ssp_main.c)
If not stated otherwise in this file or this component's Licenses.txt file the
following copyright and licenses apply:

Expand Down Expand Up @@ -94,6 +94,15 @@
char** funcNames = NULL;
int i, count = 0;

int arr[3];
arr[2]=7;
arr[4] = 10;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Coverity Issue - Out-of-bounds write

Overrunning array "arr" of 3 4-byte elements at element index 4 (byte offset 19) using index "4".

High Impact, CWE-119
OVERRUN


if(arr[2]==5) {
printf("\n Value 5\n");
} else {
printf("\n Value NONE\n");
}
Comment on lines +97 to +105
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

The newly added arr/printf block in _print_stack_backtrace() looks like temporary instrumentation and changes runtime behavior (extra stdout output) unrelated to stack tracing. Please remove it (or guard it behind an explicit test-only macro) before merging, and follow the file’s indentation/logging conventions (e.g., use existing trace/log macros rather than raw printf).

Suggested change
int arr[3];
arr[2]=7;
arr[4] = 10;
if(arr[2]==5) {
printf("\n Value 5\n");
} else {
printf("\n Value NONE\n");
}

Copilot uses AI. Check for mistakes.
count = backtrace( tracePtrs, 100 );
backtrace_symbols_fd( tracePtrs, count, 2 );

Expand Down
Loading