-
Notifications
You must be signed in to change notification settings - Fork 2
[DO NOT MERGE] Dummy PR to test Coverity enabled for DMCLI Component #17
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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
|
||||||||||||||||||||
| If not stated otherwise in this file or this component's Licenses.txt file the | ||||||||||||||||||||
| following copyright and licenses apply: | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
|
@@ -94,6 +94,15 @@ | |||||||||||||||||||
| char** funcNames = NULL; | ||||||||||||||||||||
| int i, count = 0; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| int arr[3]; | ||||||||||||||||||||
| arr[2]=7; | ||||||||||||||||||||
| arr[4] = 10; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| if(arr[2]==5) { | ||||||||||||||||||||
| printf("\n Value 5\n"); | ||||||||||||||||||||
| } else { | ||||||||||||||||||||
| printf("\n Value NONE\n"); | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
Comment on lines
+97
to
+105
|
||||||||||||||||||||
| int arr[3]; | |
| arr[2]=7; | |
| arr[4] = 10; | |
| if(arr[2]==5) { | |
| printf("\n Value 5\n"); | |
| } else { | |
| printf("\n Value NONE\n"); | |
| } |
There was a problem hiding this comment.
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