mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
C++: Add test spacing.
This commit is contained in:
@@ -4,15 +4,15 @@ edges
|
||||
| test1.c:8:11:8:14 | call to atoi | test1.c:11:9:11:9 | i | provenance | |
|
||||
| test1.c:8:11:8:14 | call to atoi | test1.c:12:9:12:9 | i | provenance | |
|
||||
| test1.c:8:11:8:14 | call to atoi | test1.c:13:9:13:9 | i | provenance | |
|
||||
| test1.c:9:9:9:9 | i | test1.c:16:16:16:16 | i | provenance | |
|
||||
| test1.c:11:9:11:9 | i | test1.c:32:16:32:16 | i | provenance | |
|
||||
| test1.c:12:9:12:9 | i | test1.c:40:16:40:16 | i | provenance | |
|
||||
| test1.c:13:9:13:9 | i | test1.c:48:16:48:16 | i | provenance | |
|
||||
| test1.c:16:16:16:16 | i | test1.c:18:16:18:16 | i | provenance | |
|
||||
| test1.c:32:16:32:16 | i | test1.c:33:11:33:11 | i | provenance | |
|
||||
| test1.c:40:16:40:16 | i | test1.c:41:11:41:11 | i | provenance | |
|
||||
| test1.c:48:16:48:16 | i | test1.c:51:3:51:7 | ... = ... | provenance | |
|
||||
| test1.c:51:3:51:7 | ... = ... | test1.c:53:15:53:15 | j | provenance | |
|
||||
| test1.c:9:9:9:9 | i | test1.c:17:16:17:16 | i | provenance | |
|
||||
| test1.c:11:9:11:9 | i | test1.c:33:16:33:16 | i | provenance | |
|
||||
| test1.c:12:9:12:9 | i | test1.c:41:16:41:16 | i | provenance | |
|
||||
| test1.c:13:9:13:9 | i | test1.c:49:16:49:16 | i | provenance | |
|
||||
| test1.c:17:16:17:16 | i | test1.c:19:16:19:16 | i | provenance | |
|
||||
| test1.c:33:16:33:16 | i | test1.c:34:11:34:11 | i | provenance | |
|
||||
| test1.c:41:16:41:16 | i | test1.c:42:11:42:11 | i | provenance | |
|
||||
| test1.c:49:16:49:16 | i | test1.c:52:3:52:7 | ... = ... | provenance | |
|
||||
| test1.c:52:3:52:7 | ... = ... | test1.c:54:15:54:15 | j | provenance | |
|
||||
nodes
|
||||
| test1.c:7:26:7:29 | **argv | semmle.label | **argv |
|
||||
| test1.c:8:11:8:14 | call to atoi | semmle.label | call to atoi |
|
||||
@@ -20,18 +20,18 @@ nodes
|
||||
| test1.c:11:9:11:9 | i | semmle.label | i |
|
||||
| test1.c:12:9:12:9 | i | semmle.label | i |
|
||||
| test1.c:13:9:13:9 | i | semmle.label | i |
|
||||
| test1.c:16:16:16:16 | i | semmle.label | i |
|
||||
| test1.c:18:16:18:16 | i | semmle.label | i |
|
||||
| test1.c:32:16:32:16 | i | semmle.label | i |
|
||||
| test1.c:33:11:33:11 | i | semmle.label | i |
|
||||
| test1.c:40:16:40:16 | i | semmle.label | i |
|
||||
| test1.c:41:11:41:11 | i | semmle.label | i |
|
||||
| test1.c:48:16:48:16 | i | semmle.label | i |
|
||||
| test1.c:51:3:51:7 | ... = ... | semmle.label | ... = ... |
|
||||
| test1.c:53:15:53:15 | j | semmle.label | j |
|
||||
| test1.c:17:16:17:16 | i | semmle.label | i |
|
||||
| test1.c:19:16:19:16 | i | semmle.label | i |
|
||||
| test1.c:33:16:33:16 | i | semmle.label | i |
|
||||
| test1.c:34:11:34:11 | i | semmle.label | i |
|
||||
| test1.c:41:16:41:16 | i | semmle.label | i |
|
||||
| test1.c:42:11:42:11 | i | semmle.label | i |
|
||||
| test1.c:49:16:49:16 | i | semmle.label | i |
|
||||
| test1.c:52:3:52:7 | ... = ... | semmle.label | ... = ... |
|
||||
| test1.c:54:15:54:15 | j | semmle.label | j |
|
||||
subpaths
|
||||
#select
|
||||
| test1.c:18:16:18:16 | i | test1.c:7:26:7:29 | **argv | test1.c:18:16:18:16 | i | An array indexing expression depends on $@ that might be outside the bounds of the array. | test1.c:7:26:7:29 | **argv | a command-line argument |
|
||||
| test1.c:33:11:33:11 | i | test1.c:7:26:7:29 | **argv | test1.c:33:11:33:11 | i | An array indexing expression depends on $@ that might be outside the bounds of the array. | test1.c:7:26:7:29 | **argv | a command-line argument |
|
||||
| test1.c:41:11:41:11 | i | test1.c:7:26:7:29 | **argv | test1.c:41:11:41:11 | i | An array indexing expression depends on $@ that might be outside the bounds of the array. | test1.c:7:26:7:29 | **argv | a command-line argument |
|
||||
| test1.c:53:15:53:15 | j | test1.c:7:26:7:29 | **argv | test1.c:53:15:53:15 | j | An array indexing expression depends on $@ that might be outside the bounds of the array. | test1.c:7:26:7:29 | **argv | a command-line argument |
|
||||
| test1.c:19:16:19:16 | i | test1.c:7:26:7:29 | **argv | test1.c:19:16:19:16 | i | An array indexing expression depends on $@ that might be outside the bounds of the array. | test1.c:7:26:7:29 | **argv | a command-line argument |
|
||||
| test1.c:34:11:34:11 | i | test1.c:7:26:7:29 | **argv | test1.c:34:11:34:11 | i | An array indexing expression depends on $@ that might be outside the bounds of the array. | test1.c:7:26:7:29 | **argv | a command-line argument |
|
||||
| test1.c:42:11:42:11 | i | test1.c:7:26:7:29 | **argv | test1.c:42:11:42:11 | i | An array indexing expression depends on $@ that might be outside the bounds of the array. | test1.c:7:26:7:29 | **argv | a command-line argument |
|
||||
| test1.c:54:15:54:15 | j | test1.c:7:26:7:29 | **argv | test1.c:54:15:54:15 | j | An array indexing expression depends on $@ that might be outside the bounds of the array. | test1.c:7:26:7:29 | **argv | a command-line argument |
|
||||
|
||||
@@ -11,6 +11,7 @@ int main(int argc, char *argv[]) {
|
||||
test3(i);
|
||||
test4(i);
|
||||
test5(i);
|
||||
test6(i);
|
||||
}
|
||||
|
||||
void test1(int i) {
|
||||
@@ -52,3 +53,7 @@ void test5(int i) {
|
||||
|
||||
j = myArray[j]; // BAD: j has not been validated
|
||||
}
|
||||
|
||||
void test6(int i) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user