CPP: Handle array accesses.

This commit is contained in:
Geoffrey White
2019-01-29 16:00:44 +00:00
parent 4685f193f5
commit 07adf6f201
3 changed files with 9 additions and 5 deletions

View File

@@ -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. |

View File

@@ -97,7 +97,7 @@ char *testArray2()
{
char arr[256];
return &(arr[10]); // BAD [NOT DETECTED]
return &(arr[10]); // BAD
}
char testArray3()