Skip to content

Commit

Permalink
C++: Update expected test results after dataflow library changes and …
Browse files Browse the repository at this point in the history
…merge from main
  • Loading branch information
jketema committed May 23, 2024
1 parent 989e004 commit e5cdb71
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ edges
| test.c:97:32:97:37 | call to malloc | test.c:98:40:98:41 | s2 | provenance | |
| test.c:98:32:98:38 | call to realloc | test.c:99:3:99:4 | s3 | provenance | |
| test.c:98:32:98:38 | call to realloc | test.c:100:10:100:11 | s3 | provenance | |
| test.c:98:40:98:41 | s2 | test.c:98:32:98:38 | call to realloc | provenance | |
| test.c:98:40:98:41 | s2 | test.c:98:32:98:38 | call to realloc | provenance | Config |
nodes
| test.c:6:19:6:20 | & ... | semmle.label | & ... |
| test.c:11:10:11:11 | & ... | semmle.label | & ... |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ problems
| test.c:13:10:13:11 | p4 | test.c:5:14:5:15 | l2 | test.c:13:10:13:11 | p4 | Subtraction between left operand pointing to array $@ and other operand pointing to array $@. | test.c:3:7:3:8 | l2 | l2 | test.c:2:7:2:8 | l1 | l1 |
| test.c:13:15:13:16 | l1 | test.c:13:15:13:16 | l1 | test.c:13:15:13:16 | l1 | Subtraction between right operand pointing to array $@ and other operand pointing to array $@. | test.c:2:7:2:8 | l1 | l1 | test.c:3:7:3:8 | l2 | l2 |
edges
| test.c:4:14:4:15 | l1 | test.c:4:14:4:18 | access to array | provenance | |
| test.c:4:14:4:15 | l1 | test.c:4:14:4:18 | access to array | provenance | Config |
| test.c:4:14:4:18 | access to array | test.c:10:10:10:11 | p1 | provenance | |
| test.c:4:14:4:18 | access to array | test.c:12:10:12:11 | p1 | provenance | |
| test.c:5:14:5:15 | l2 | test.c:5:14:5:19 | access to array | provenance | |
| test.c:5:14:5:15 | l2 | test.c:5:14:5:19 | access to array | provenance | Config |
| test.c:5:14:5:19 | access to array | test.c:11:10:11:11 | p2 | provenance | |
| test.c:5:14:5:19 | access to array | test.c:12:15:12:16 | p2 | provenance | |
| test.c:5:14:5:19 | access to array | test.c:13:10:13:11 | p4 | provenance | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ problems
| test.c:25:7:25:14 | ... >= ... | test.c:25:13:25:14 | l3 | test.c:25:13:25:14 | l3 | Compare operation >= comparing right operand pointing to array $@ and other operand pointing to array $@. | test.c:4:7:4:8 | l3 | l3 | test.c:2:7:2:8 | l1 | l1 |
edges
| test.c:6:13:6:14 | l1 | test.c:13:12:13:13 | p0 | provenance | |
| test.c:7:14:7:15 | l1 | test.c:7:14:7:18 | access to array | provenance | |
| test.c:7:14:7:15 | l1 | test.c:7:14:7:18 | access to array | provenance | Config |
| test.c:7:14:7:18 | access to array | test.c:11:7:11:8 | p1 | provenance | |
| test.c:7:14:7:18 | access to array | test.c:13:7:13:8 | p1 | provenance | |
| test.c:7:14:7:18 | access to array | test.c:15:13:15:14 | p1 | provenance | |
| test.c:7:14:7:18 | access to array | test.c:17:7:17:8 | p1 | provenance | |
| test.c:7:14:7:18 | access to array | test.c:23:13:23:14 | p1 | provenance | |
| test.c:7:14:7:18 | access to array | test.c:25:7:25:8 | p1 | provenance | |
| test.c:8:14:8:15 | l1 | test.c:8:14:8:18 | access to array | provenance | |
| test.c:8:14:8:15 | l1 | test.c:8:14:8:18 | access to array | provenance | Config |
| test.c:8:14:8:18 | access to array | test.c:11:12:11:13 | p2 | provenance | |
| test.c:8:14:8:18 | access to array | test.c:21:7:21:8 | p2 | provenance | |
| test.c:9:14:9:15 | l2 | test.c:9:14:9:18 | access to array | provenance | |
| test.c:9:14:9:15 | l2 | test.c:9:14:9:18 | access to array | provenance | Config |
| test.c:9:14:9:18 | access to array | test.c:21:12:21:13 | p3 | provenance | |
nodes
| test.c:6:13:6:14 | l1 | semmle.label | l1 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ edges
| test.cpp:3:36:3:45 | new[] | test.cpp:27:20:27:37 | call to allocate_int_array | provenance | |
| test.cpp:11:29:11:41 | call to unique_ptr | test.cpp:12:27:12:28 | v2 | provenance | |
| test.cpp:12:27:12:28 | v2 | test.cpp:12:30:12:36 | call to release | provenance | |
| test.cpp:12:27:12:28 | v2 | test.cpp:12:30:12:36 | call to release | provenance | Config |
| test.cpp:27:20:27:37 | call to allocate_int_array | test.cpp:32:12:32:20 | int_array | provenance | |
nodes
| test.cpp:3:36:3:45 | new[] | semmle.label | new[] |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
WARNING: Module DataFlow has been deprecated and may be removed in future (VariableMissingConstexpr.ql:64,7-15)
WARNING: Module DataFlow has been deprecated and may be removed in future (VariableMissingConstexpr.ql:79,10-18)
WARNING: Module DataFlow has been deprecated and may be removed in future (VariableMissingConstexpr.ql:79,44-52)
WARNING: Module DataFlow has been deprecated and may be removed in future (VariableMissingConstexpr.ql:80,17-25)
WARNING: Module DataFlow has been deprecated and may be removed in future (VariableMissingConstexpr.ql:81,5-13)
WARNING: Module DataFlow has been deprecated and may be removed in future (VariableMissingConstexpr.ql:82,9-17)
| test.cpp:4:5:4:6 | g1 | Variable g1 could be marked 'constexpr'. |
| test.cpp:6:5:6:6 | g2 | Variable g2 could be marked 'constexpr'. |
| test.cpp:13:14:13:15 | lc | Variable lc could be marked 'constexpr'. |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:97,7-15)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:97,27-35)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:98,9-17)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:102,9-17)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:102,29-37)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:103,11-19)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:113,35-43)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:114,11-19)
WARNING: Module TaintTracking has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:113,9-22)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:88,7-15)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:88,27-35)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:89,9-17)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:93,9-17)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:93,29-37)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:94,11-19)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:104,35-43)
WARNING: Module DataFlow has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:105,11-19)
WARNING: Module TaintTracking has been deprecated and may be removed in future (GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql:104,9-22)
| test.cpp:8:42:8:46 | call to begin | Output iterator for $@ is not guaranteed to be large enough for the input iterator. | test.cpp:8:3:8:11 | call to copy | call to copy |
| test.cpp:17:42:17:46 | call to begin | Output iterator for $@ is not guaranteed to be large enough for the input iterator. | test.cpp:17:3:17:11 | call to copy | call to copy |
| test.cpp:55:42:55:46 | call to begin | Output iterator for $@ is not guaranteed to be large enough for the input iterator. | test.cpp:55:3:55:11 | call to copy | call to copy |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
WARNING: Module DataFlow has been deprecated and may be removed in future (DoNotUseAnAdditiveOperatorOnAnIterator.ql:38,5-13)
WARNING: Module DataFlow has been deprecated and may be removed in future (DoNotUseAnAdditiveOperatorOnAnIterator.ql:38,25-33)
WARNING: Module DataFlow has been deprecated and may be removed in future (DoNotUseAnAdditiveOperatorOnAnIterator.ql:38,51-59)
WARNING: Module DataFlow has been deprecated and may be removed in future (DoNotUseAnAdditiveOperatorOnAnIterator.ql:39,5-13)
WARNING: Module DataFlow has been deprecated and may be removed in future (DoNotUseAnAdditiveOperatorOnAnIterator.ql:39,25-33)
WARNING: Module DataFlow has been deprecated and may be removed in future (DoNotUseAnAdditiveOperatorOnAnIterator.ql:39,52-60)
WARNING: Module DataFlow has been deprecated and may be removed in future (DoNotUseAnAdditiveOperatorOnAnIterator.ql:74,5-13)
WARNING: Module DataFlow has been deprecated and may be removed in future (DoNotUseAnAdditiveOperatorOnAnIterator.ql:74,25-33)
WARNING: Module DataFlow has been deprecated and may be removed in future (DoNotUseAnAdditiveOperatorOnAnIterator.ql:75,7-15)
| test.cpp:8:7:8:7 | i | Increment of iterator may overflow since its bounds are not checked. |
| test.cpp:9:9:9:9 | i | Increment of iterator may overflow since its bounds are not checked. |
| test.cpp:10:9:10:9 | i | Increment of iterator may overflow since its bounds are not checked. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ problems
| test.cpp:13:10:13:11 | p4 | test.cpp:5:14:5:15 | l2 | test.cpp:13:10:13:11 | p4 | Subtraction between left operand pointing to array $@ and other operand pointing to array $@. | test.cpp:3:7:3:8 | l2 | l2 | test.cpp:2:7:2:8 | l1 | l1 |
| test.cpp:13:15:13:16 | l1 | test.cpp:13:15:13:16 | l1 | test.cpp:13:15:13:16 | l1 | Subtraction between right operand pointing to array $@ and other operand pointing to array $@. | test.cpp:2:7:2:8 | l1 | l1 | test.cpp:3:7:3:8 | l2 | l2 |
edges
| test.cpp:4:14:4:15 | l1 | test.cpp:4:14:4:18 | access to array | provenance | |
| test.cpp:4:14:4:15 | l1 | test.cpp:4:14:4:18 | access to array | provenance | Config |
| test.cpp:4:14:4:18 | access to array | test.cpp:10:10:10:11 | p1 | provenance | |
| test.cpp:4:14:4:18 | access to array | test.cpp:12:10:12:11 | p1 | provenance | |
| test.cpp:5:14:5:15 | l2 | test.cpp:5:14:5:19 | access to array | provenance | |
| test.cpp:5:14:5:15 | l2 | test.cpp:5:14:5:19 | access to array | provenance | Config |
| test.cpp:5:14:5:19 | access to array | test.cpp:11:10:11:11 | p2 | provenance | |
| test.cpp:5:14:5:19 | access to array | test.cpp:12:15:12:16 | p2 | provenance | |
| test.cpp:5:14:5:19 | access to array | test.cpp:13:10:13:11 | p4 | provenance | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ problems
| test.cpp:25:7:25:14 | ... >= ... | test.cpp:25:13:25:14 | l3 | test.cpp:25:13:25:14 | l3 | Compare operation >= comparing right operand pointing to array $@ and other operand pointing to array $@. | test.cpp:4:7:4:8 | l3 | l3 | test.cpp:2:7:2:8 | l1 | l1 |
edges
| test.cpp:6:13:6:14 | l1 | test.cpp:13:12:13:13 | p0 | provenance | |
| test.cpp:7:14:7:15 | l1 | test.cpp:7:14:7:18 | access to array | provenance | |
| test.cpp:7:14:7:15 | l1 | test.cpp:7:14:7:18 | access to array | provenance | Config |
| test.cpp:7:14:7:18 | access to array | test.cpp:11:7:11:8 | p1 | provenance | |
| test.cpp:7:14:7:18 | access to array | test.cpp:13:7:13:8 | p1 | provenance | |
| test.cpp:7:14:7:18 | access to array | test.cpp:15:13:15:14 | p1 | provenance | |
| test.cpp:7:14:7:18 | access to array | test.cpp:17:7:17:8 | p1 | provenance | |
| test.cpp:7:14:7:18 | access to array | test.cpp:23:13:23:14 | p1 | provenance | |
| test.cpp:7:14:7:18 | access to array | test.cpp:25:7:25:8 | p1 | provenance | |
| test.cpp:8:14:8:15 | l1 | test.cpp:8:14:8:18 | access to array | provenance | |
| test.cpp:8:14:8:15 | l1 | test.cpp:8:14:8:18 | access to array | provenance | Config |
| test.cpp:8:14:8:18 | access to array | test.cpp:11:12:11:13 | p2 | provenance | |
| test.cpp:8:14:8:18 | access to array | test.cpp:21:7:21:8 | p2 | provenance | |
| test.cpp:9:14:9:15 | l2 | test.cpp:9:14:9:18 | access to array | provenance | |
| test.cpp:9:14:9:15 | l2 | test.cpp:9:14:9:18 | access to array | provenance | Config |
| test.cpp:9:14:9:18 | access to array | test.cpp:21:12:21:13 | p3 | provenance | |
nodes
| test.cpp:6:13:6:14 | l1 | semmle.label | l1 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ edges
| test.cpp:3:14:3:15 | v1 | test.cpp:7:28:7:29 | v2 | provenance | |
| test.cpp:4:13:4:14 | v1 | test.cpp:7:28:7:29 | v2 | provenance | |
| test.cpp:5:27:5:28 | v1 | test.cpp:5:27:5:29 | call to shared_ptr | provenance | |
| test.cpp:5:27:5:28 | v1 | test.cpp:5:27:5:29 | call to shared_ptr | provenance | Config |
| test.cpp:5:27:5:29 | call to shared_ptr | test.cpp:6:28:6:29 | p1 | provenance | |
| test.cpp:5:27:5:29 | call to shared_ptr | test.cpp:6:28:6:29 | p1 | provenance | |
| test.cpp:6:28:6:29 | p1 | test.cpp:6:31:6:33 | call to get | provenance | |
| test.cpp:6:28:6:29 | p1 | test.cpp:6:31:6:33 | call to get | provenance | |
| test.cpp:6:28:6:29 | p1 | test.cpp:6:31:6:33 | call to get | provenance | Config |
| test.cpp:6:28:6:29 | p1 | test.cpp:6:31:6:33 | call to get | provenance | Config |
| test.cpp:8:8:8:14 | 0 | test.cpp:9:28:9:29 | v2 | provenance | |
| test.cpp:10:8:10:17 | new | test.cpp:11:28:11:29 | v2 | provenance | |
| test.cpp:10:8:10:17 | new | test.cpp:12:28:12:29 | v2 | provenance | |
Expand Down

0 comments on commit e5cdb71

Please sign in to comment.