mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
CPP: Handle array accesses.
This commit is contained in:
@@ -2,3 +2,4 @@
|
||||
| test.cpp:20:2:20:12 | return ... | May return stack-allocated memory. |
|
||||
| test.cpp:73:2:73:12 | return ... | May return stack-allocated memory. |
|
||||
| test.cpp:93:2:93:12 | return ... | May return stack-allocated memory. |
|
||||
| test.cpp:100:2:100:19 | return ... | May return stack-allocated memory. |
|
||||
|
||||
@@ -97,7 +97,7 @@ char *testArray2()
|
||||
{
|
||||
char arr[256];
|
||||
|
||||
return &(arr[10]); // BAD [NOT DETECTED]
|
||||
return &(arr[10]); // BAD
|
||||
}
|
||||
|
||||
char testArray3()
|
||||
|
||||
Reference in New Issue
Block a user