mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
C++: Accept library-test changes
This commit is contained in:
@@ -101,7 +101,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
calls_sink_with_argv(*p[i]); // $ ir-path=96:26 ir-path=98:18 MISSING:ast
|
||||
|
||||
sink(*(argv + 1)); // $ ast ir-path ir-sink
|
||||
sink(*(argv + 1)); // $ ast ir-path ir-sink=96:26 ir-sink=98:18 ir-sink=104:12
|
||||
|
||||
BaseWithPureVirtual* b = new DerivedCallsSink;
|
||||
|
||||
|
||||
@@ -233,7 +233,7 @@ void test_recv() {
|
||||
int send(int, const void*, int, int);
|
||||
|
||||
void test_send(char* buffer, int length) {
|
||||
send(0, buffer, length, 0); // $ remote
|
||||
send(0, buffer, length, 0); // $ MISSING: remote
|
||||
}
|
||||
|
||||
struct iovec {
|
||||
@@ -257,5 +257,5 @@ int test_readv_and_writev(iovec* iovs) {
|
||||
sink(p); // $ MISSING: ast,ir
|
||||
sink(*p); // $ MISSING: ast,ir
|
||||
|
||||
writev(0, iovs, 16); // $ remote
|
||||
writev(0, iovs, 16); // $ MISSING: remote
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import cpp
|
||||
import semmle.code.cpp.dataflow.DataFlow
|
||||
import semmle.code.cpp.dataflow.old.DataFlow
|
||||
|
||||
class TestConfig extends DataFlow::Configuration {
|
||||
TestConfig() { this = "TestConfig" }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import cpp
|
||||
import semmle.code.cpp.dataflow.DataFlow
|
||||
import semmle.code.cpp.dataflow.old.DataFlow
|
||||
|
||||
class EdgeToExcept extends AdditionalControlFlowEdge {
|
||||
EdgeToExcept() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import cpp
|
||||
import semmle.code.cpp.dataflow.DataFlow
|
||||
import semmle.code.cpp.dataflow.old.DataFlow
|
||||
|
||||
from DataFlow::Node nodeFrom, DataFlow::Node nodeTo
|
||||
where DataFlow::localFlowStep(nodeFrom, nodeTo)
|
||||
|
||||
@@ -4,7 +4,7 @@ bool guarded(int);
|
||||
|
||||
void bg_basic(int source) {
|
||||
if (guarded(source)) {
|
||||
sink(source); // no flow
|
||||
sink(source); // $ SPURIOUS: ir
|
||||
} else {
|
||||
sink(source); // $ ast,ir
|
||||
}
|
||||
@@ -14,13 +14,13 @@ void bg_not(int source) {
|
||||
if (!guarded(source)) {
|
||||
sink(source); // $ ast,ir
|
||||
} else {
|
||||
sink(source); // no flow
|
||||
sink(source); // $ SPURIOUS: ir
|
||||
}
|
||||
}
|
||||
|
||||
void bg_and(int source, bool arbitrary) {
|
||||
if (guarded(source) && arbitrary) {
|
||||
sink(source); // no flow
|
||||
sink(source); // $ SPURIOUS: ir
|
||||
} else {
|
||||
sink(source); // $ ast,ir
|
||||
}
|
||||
@@ -38,7 +38,7 @@ void bg_return(int source) {
|
||||
if (!guarded(source)) {
|
||||
return;
|
||||
}
|
||||
sink(source); // no flow
|
||||
sink(source); // $ SPURIOUS: ir
|
||||
}
|
||||
|
||||
struct XY {
|
||||
@@ -48,7 +48,7 @@ struct XY {
|
||||
void bg_stackstruct(XY s1, XY s2) {
|
||||
s1.x = source();
|
||||
if (guarded(s1.x)) {
|
||||
sink(s1.x); // $ SPURIOUS: ast
|
||||
sink(s1.x); // $ SPURIOUS: ast,ir
|
||||
} else if (guarded(s1.y)) {
|
||||
sink(s1.x); // $ ast,ir
|
||||
} else if (guarded(s2.y)) {
|
||||
@@ -59,7 +59,7 @@ void bg_stackstruct(XY s1, XY s2) {
|
||||
void bg_structptr(XY *p1, XY *p2) {
|
||||
p1->x = source();
|
||||
if (guarded(p1->x)) {
|
||||
sink(p1->x); // $ SPURIOUS: ast
|
||||
sink(p1->x); // $ SPURIOUS: ast,ir
|
||||
} else if (guarded(p1->y)) {
|
||||
sink(p1->x); // $ ast,ir
|
||||
} else if (guarded(p2->x)) {
|
||||
|
||||
@@ -1 +1 @@
|
||||
import semmle.code.cpp.dataflow.internal.DataFlowImplConsistency::Consistency
|
||||
import semmle.code.cpp.dataflow.old.internal.DataFlowImplConsistency::Consistency
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
uniqueEnclosingCallable
|
||||
| globals.cpp:9:5:9:19 | VariableAddress indirection | Node should have one enclosing callable but has 0. |
|
||||
| globals.cpp:9:5:9:19 | VariableAddress indirection | Node should have one enclosing callable but has 0. |
|
||||
| globals.cpp:16:12:16:26 | VariableAddress indirection | Node should have one enclosing callable but has 0. |
|
||||
| globals.cpp:16:12:16:26 | VariableAddress indirection | Node should have one enclosing callable but has 0. |
|
||||
uniqueType
|
||||
uniqueNodeLocation
|
||||
| BarrierGuard.cpp:2:11:2:13 | (unnamed parameter 0) | Node should have one location but has 6. |
|
||||
@@ -29,602 +33,14 @@ postHasUniquePre
|
||||
uniquePostUpdate
|
||||
postIsInSameCallable
|
||||
reverseRead
|
||||
| dispatch.cpp:168:3:168:4 | Unary | Origin of readStep is missing a PostUpdateNode. |
|
||||
| dispatch.cpp:173:37:173:38 | Unary | Origin of readStep is missing a PostUpdateNode. |
|
||||
| dispatch.cpp:174:37:174:38 | Unary | Origin of readStep is missing a PostUpdateNode. |
|
||||
| test.cpp:481:21:481:21 | Unary | Origin of readStep is missing a PostUpdateNode. |
|
||||
argHasPostUpdate
|
||||
postWithInFlow
|
||||
| BarrierGuard.cpp:49:6:49:6 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| BarrierGuard.cpp:60:3:60:4 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| BarrierGuard.cpp:60:7:60:7 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:8:20:8:29 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:22:8:22:20 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:22:8:22:20 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:22:9:22:20 | sourceArray1 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:26:8:26:24 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:26:8:26:24 | sourceStruct1_ptr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:26:8:26:24 | sourceStruct1_ptr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:28:3:28:19 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:28:22:28:23 | m1 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:30:8:30:24 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:30:8:30:24 | sourceStruct1_ptr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:30:8:30:24 | sourceStruct1_ptr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:34:19:34:41 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:34:19:34:41 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:39:16:39:21 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:39:30:39:51 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:39:30:39:51 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:43:26:43:53 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:43:26:43:53 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:49:7:49:16 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:49:22:49:44 | PointerAdd [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:49:22:49:44 | PointerAdd [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:50:3:50:12 | array to pointer conversion [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:50:3:50:12 | stackArray [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| clang.cpp:50:3:50:15 | access to array [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:6:29:6:37 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:7:29:7:37 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:9:30:9:45 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:10:30:10:45 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:15:8:15:8 | Argument this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:15:8:15:8 | ConvertToNonVirtualBase [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:15:8:15:8 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:16:30:16:45 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:17:31:17:39 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:21:8:21:8 | Argument this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:21:8:21:8 | ConvertToNonVirtualBase [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:21:8:21:8 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:22:30:22:45 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:24:31:24:39 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:29:8:29:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:29:29:29:34 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:31:8:31:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:31:8:31:13 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:31:8:31:13 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:32:8:32:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:32:8:32:13 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:32:8:32:13 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:33:3:33:8 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:33:3:33:8 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:33:3:33:8 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:35:8:35:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:35:8:35:13 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:35:8:35:13 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:36:8:36:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:36:8:36:13 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:36:8:36:13 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:37:3:37:8 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:37:3:37:8 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:37:3:37:8 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:39:8:39:13 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:39:8:39:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:39:8:39:13 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:39:8:39:13 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:40:8:40:13 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:40:8:40:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:40:8:40:13 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:40:8:40:13 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:41:3:41:8 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:41:3:41:8 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:41:3:41:8 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:41:3:41:8 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:43:8:43:13 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:43:8:43:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:43:8:43:13 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:43:8:43:13 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:44:8:44:13 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:44:8:44:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:44:8:44:13 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:44:8:44:13 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:45:3:45:8 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:45:3:45:8 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:45:3:45:8 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:45:3:45:8 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:51:3:51:22 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:55:8:55:19 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:55:8:55:19 | globalBottom [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:55:8:55:19 | globalBottom [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:56:8:56:19 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:56:8:56:19 | globalMiddle [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:56:8:56:19 | globalMiddle [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:58:8:58:23 | call to readGlobalBottom [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:58:8:58:23 | call to readGlobalBottom [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:60:3:60:14 | globalBottom [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:60:18:60:29 | Call [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:60:18:60:29 | new [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:60:18:60:29 | new [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:61:3:61:14 | globalMiddle [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:61:18:61:29 | Call [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:61:18:61:29 | new [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:61:18:61:29 | new [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:65:3:65:22 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:65:10:65:21 | Call [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:65:10:65:21 | new [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:65:10:65:21 | new [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:69:3:69:5 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:69:3:69:5 | top [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:69:3:69:5 | top [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:73:3:73:5 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:73:3:73:5 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:73:3:73:5 | top [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:73:3:73:5 | top [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:77:21:77:34 | call to allocateBottom [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:77:21:77:34 | call to allocateBottom [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:78:23:78:39 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:78:23:78:39 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:78:23:78:39 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:78:24:78:37 | call to allocateBottom [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:80:8:80:8 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:81:3:81:3 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:81:3:81:3 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:81:3:81:3 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:85:3:85:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:89:3:89:10 | call to identity [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:89:3:89:10 | call to identity [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:89:12:89:17 | (Middle *)... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:89:12:89:17 | (Top *)... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:89:12:89:17 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:89:12:89:17 | bottom [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:89:12:89:17 | bottom [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:90:3:90:10 | call to identity [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:90:3:90:10 | call to identity [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:90:12:90:14 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:90:12:90:14 | top [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:90:12:90:14 | top [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:100:3:100:18 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:105:5:105:17 | maybeCallSink [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:113:30:113:38 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:117:31:117:46 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:127:10:127:15 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:127:31:127:36 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:129:10:129:15 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:129:10:129:15 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:129:10:129:15 | topPtr [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:130:10:130:15 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:130:10:130:15 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:130:10:130:15 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:130:10:130:15 | topRef [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:148:3:148:3 | u [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:148:5:148:5 | f [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:168:3:168:4 | u2 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:168:6:168:6 | u [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| dispatch.cpp:168:8:168:8 | f [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| example.c:17:19:17:22 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| example.c:17:19:17:22 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| example.c:24:9:24:9 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| example.c:24:20:24:20 | y [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| example.c:26:9:26:9 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| example.c:26:18:26:24 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| example.c:26:18:26:24 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| example.c:26:19:26:24 | coords [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| example.c:28:14:28:25 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| example.c:28:14:28:25 | (void *)... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| example.c:28:22:28:25 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| example.c:28:23:28:25 | pos [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| globals.cpp:5:9:5:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| globals.cpp:9:5:9:19 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| globals.cpp:13:5:13:19 | flowTestGlobal1 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| globals.cpp:16:12:16:26 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| globals.cpp:23:5:23:19 | flowTestGlobal2 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:8:6:8:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:9:6:9:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:10:6:10:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:11:6:11:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:13:7:13:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:13:10:17:2 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:13:10:17:2 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:13:11:13:11 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:13:11:13:11 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:16:3:16:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:20:7:20:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:20:10:24:2 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:20:10:24:2 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:20:10:24:2 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:20:11:20:11 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:20:11:20:11 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:20:11:20:11 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:23:3:23:3 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:23:3:23:14 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:23:3:23:14 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:23:3:23:14 | v [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:28:7:28:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:28:10:31:2 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:28:10:31:2 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:28:11:28:11 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:28:11:28:11 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:34:7:34:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:34:13:34:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:40:7:40:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:40:13:40:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:43:3:43:3 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:43:3:43:3 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:43:3:43:3 | c [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:45:4:45:4 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:45:4:45:4 | t [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:45:4:45:4 | t [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:45:7:45:7 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:45:7:45:7 | u [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:45:7:45:7 | u [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:45:10:45:10 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:45:10:45:10 | w [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| lambdas.cpp:45:10:45:10 | w [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:11:5:11:7 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:11:5:11:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:11:5:11:7 | lhs [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:16:12:16:14 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:16:12:16:14 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:16:12:16:14 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:16:12:16:14 | lhs [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:16:12:16:14 | lhs [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:20:5:20:7 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:20:5:20:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:20:5:20:7 | lhs [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:22:7:22:9 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:22:7:22:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:22:7:22:9 | lhs [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:24:7:24:9 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:24:7:24:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:24:7:24:9 | lhs [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:29:5:29:7 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:29:5:29:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:29:5:29:7 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:31:7:31:9 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:31:7:31:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:31:7:31:9 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:37:21:37:23 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:37:21:37:23 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:37:21:37:23 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:37:21:37:23 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:37:21:37:23 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:39:7:39:9 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:39:7:39:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:39:7:39:9 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:44:5:44:7 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:44:5:44:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:44:5:44:7 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:46:7:46:9 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:46:7:46:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:46:7:46:9 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:48:7:48:9 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:48:7:48:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:48:7:48:9 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:55:19:55:20 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:55:19:55:20 | x1 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:55:19:55:20 | x1 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:58:15:58:16 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:58:15:58:16 | x2 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:58:15:58:16 | x2 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:61:26:61:27 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:61:26:61:27 | x3 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:61:26:61:27 | x3 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:64:15:64:16 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:64:15:64:16 | x4 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:64:15:64:16 | x4 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:75:5:75:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:75:5:75:7 | lhs [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:75:9:75:11 | val [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:79:12:79:14 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:79:12:79:14 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:79:12:79:14 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:79:12:79:14 | lhs [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:79:12:79:14 | lhs [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:83:5:83:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:83:5:83:7 | lhs [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:83:9:83:11 | val [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:87:7:87:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:87:7:87:9 | lhs [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:87:11:87:13 | val [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:89:7:89:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:89:7:89:9 | lhs [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:89:11:89:13 | val [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:94:5:94:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:94:5:94:7 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:94:9:94:11 | val [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:96:7:96:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:96:7:96:9 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:96:11:96:13 | val [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:102:21:102:23 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:102:21:102:23 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:102:21:102:23 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:102:21:102:23 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:102:21:102:23 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:104:7:104:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:104:7:104:9 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:104:11:104:13 | val [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:109:5:109:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:109:5:109:7 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:109:9:109:11 | val [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:113:7:113:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:113:7:113:9 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:113:11:113:13 | val [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:115:7:115:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:115:7:115:9 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:115:11:115:13 | val [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:122:19:122:20 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:122:19:122:20 | x1 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:122:19:122:20 | x1 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:125:15:125:16 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:125:15:125:16 | x2 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:125:15:125:16 | x2 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:128:26:128:27 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:128:26:128:27 | x3 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:128:26:128:27 | x3 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:131:15:131:16 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:131:15:131:16 | x4 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| ref.cpp:131:15:131:16 | x4 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:6:7:6:8 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:8:3:8:4 | t2 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:12:5:12:6 | t2 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:17:3:17:4 | t1 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:23:12:23:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:23:27:23:27 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:24:5:24:6 | t1 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:41:9:41:10 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:41:17:41:18 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:42:9:42:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:43:10:43:20 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:43:10:43:20 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:45:5:45:5 | t [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:45:9:45:19 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:45:9:45:19 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:50:9:50:10 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:50:24:50:24 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:52:7:52:7 | t [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:54:7:54:7 | t [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:67:14:67:15 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:68:8:68:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:69:8:69:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:70:14:70:15 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:77:3:77:4 | u1 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:80:7:80:8 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:84:8:84:18 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:85:3:85:4 | i1 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:91:3:91:9 | (reference dereference) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:91:3:91:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:91:3:91:9 | source1 [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:100:9:100:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:101:10:101:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:102:5:102:5 | t [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:107:9:107:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:108:10:108:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:109:5:109:5 | t [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:115:3:115:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:115:4:115:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:115:4:115:6 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:116:3:116:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:120:3:120:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:120:4:120:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:120:4:120:6 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:121:3:121:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:125:3:125:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:125:4:125:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:125:4:125:6 | out [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:126:3:126:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:134:3:134:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:138:7:138:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:139:7:139:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:145:3:145:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:149:7:149:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:151:7:151:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:156:7:156:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:158:3:158:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:162:7:162:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:164:7:164:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:171:7:171:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:172:3:172:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:176:7:176:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:177:7:177:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:190:5:190:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:194:9:194:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:194:13:194:27 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:194:13:194:27 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:194:13:194:27 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:195:9:195:15 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:196:9:196:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:201:9:201:15 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:203:5:203:19 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:207:9:207:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:207:13:207:33 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:207:13:207:33 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:207:13:207:33 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:209:9:209:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:209:13:209:33 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:209:13:209:33 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:209:13:209:33 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:214:9:214:15 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:215:9:215:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:217:5:217:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:221:9:221:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:221:13:221:34 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:221:13:221:34 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:221:13:221:34 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:223:9:223:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:223:13:223:34 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:223:13:223:34 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:223:13:223:34 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:230:9:230:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:231:9:231:15 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:232:5:232:19 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:236:9:236:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:236:13:236:24 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:236:13:236:24 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:236:13:236:24 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:237:9:237:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:245:7:245:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:245:7:245:12 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:245:7:245:12 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:246:7:246:16 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:246:7:246:16 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:246:7:246:16 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:250:11:250:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:251:7:251:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:251:7:251:12 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:251:7:251:12 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:255:11:255:17 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:256:7:256:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:256:7:256:12 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:256:7:256:12 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:265:11:265:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:265:15:265:20 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:265:15:265:20 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:265:15:265:20 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:267:7:267:7 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:267:11:267:20 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:267:11:267:20 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:267:11:267:20 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:272:11:272:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:273:7:273:23 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:273:14:273:19 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:273:14:273:19 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:273:14:273:19 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:277:11:277:17 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:278:7:278:29 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:278:14:278:19 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:278:14:278:19 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:278:14:278:19 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:282:11:282:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:283:7:283:15 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:288:13:288:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:288:17:288:22 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:288:17:288:22 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:288:17:288:22 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:290:9:290:9 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:290:13:290:22 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:290:13:290:22 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:290:13:290:22 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:295:13:295:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:295:17:295:22 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:295:17:295:22 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:295:17:295:22 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:296:9:296:17 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:300:13:300:19 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:300:23:300:28 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:300:23:300:28 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:300:23:300:28 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:301:9:301:23 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:305:13:305:13 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:306:9:306:17 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:314:2:314:2 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:314:2:314:2 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:314:2:314:2 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:317:6:317:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:317:10:317:10 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:317:10:317:10 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:317:10:317:10 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:319:6:319:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:319:10:319:10 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:319:10:319:10 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:319:10:319:10 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:321:2:321:2 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:321:2:321:2 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:321:2:321:2 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:324:2:324:10 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:333:5:333:13 | globalVar [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:347:5:347:13 | globalVar [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:359:5:359:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:359:5:359:9 | field [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:364:5:364:14 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:364:5:364:14 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:364:5:364:14 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:373:5:373:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:373:5:373:9 | field [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:374:5:374:20 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:374:5:374:20 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:374:5:374:20 | this [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:383:7:383:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:384:10:384:13 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:384:10:384:13 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:384:10:384:13 | (void *)... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:384:11:384:13 | tmp [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:389:7:389:9 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:390:8:390:14 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:391:10:391:13 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:391:10:391:13 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:391:10:391:13 | (void *)... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:391:11:391:13 | tmp [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:400:10:400:13 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:400:10:400:13 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:400:10:400:13 | (void *)... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:400:11:400:13 | tmp [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:406:8:406:14 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:407:10:407:13 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:407:10:407:13 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:407:10:407:13 | (void *)... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:407:11:407:13 | tmp [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:417:16:417:20 | (reference to) [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:417:16:417:20 | local [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:417:16:417:20 | local [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:423:20:423:25 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:423:20:423:25 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:423:21:423:25 | local [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:429:20:429:24 | array to pointer conversion [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:429:20:429:24 | local [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:429:20:429:24 | local [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:436:18:436:23 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:436:18:436:23 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:436:19:436:23 | local [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:442:18:442:22 | array to pointer conversion [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:442:18:442:22 | local [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:442:18:442:22 | local [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:453:7:453:11 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:456:7:456:9 | tmp [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:458:7:458:9 | tmp [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:465:3:465:4 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:465:4:465:4 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:465:4:465:4 | p [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:469:7:469:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:470:21:470:22 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:470:21:470:22 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:470:22:470:22 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:481:21:481:21 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:481:21:481:30 | (void *)... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:481:21:481:30 | content [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:481:24:481:30 | FieldAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:481:24:481:30 | content [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:482:8:482:16 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:489:7:489:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:491:5:491:5 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:494:5:494:5 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:9:7:9:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:10:12:10:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:10:27:10:27 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:11:5:11:5 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:17:7:17:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:18:12:18:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:18:35:18:35 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:19:5:19:5 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:25:7:25:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:26:12:26:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:26:27:26:27 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:27:5:27:5 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:33:7:33:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:34:12:34:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:34:27:34:27 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:37:5:37:5 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:43:7:43:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:44:12:44:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:44:27:44:27 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:47:5:47:5 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:54:7:54:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:55:12:55:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:55:30:55:30 | y [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:55:38:55:38 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:62:7:62:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:63:12:63:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:63:30:63:30 | y [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:63:38:63:38 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:64:5:64:5 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:70:7:70:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:76:12:76:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:76:30:76:30 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:76:38:76:38 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:83:7:83:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:84:12:84:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:84:20:84:20 | y [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:84:38:84:38 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:90:7:90:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:91:12:91:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:91:20:91:20 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:91:38:91:38 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:97:7:97:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:98:7:98:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:101:18:101:18 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:102:5:102:5 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:384:10:384:13 | memcpy output argument | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:391:10:391:13 | memcpy output argument | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:400:10:400:13 | memcpy output argument | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:407:10:407:13 | memcpy output argument | PostUpdateNode should not be the target of local flow. |
|
||||
viableImplInCallContextTooLarge
|
||||
|
||||
@@ -55,7 +55,7 @@ void DispatchThroughGlobal() {
|
||||
sink(globalBottom->isSource1()); // $ ir MISSING: ast
|
||||
sink(globalMiddle->isSource1()); // no flow
|
||||
|
||||
sink(readGlobalBottom()->isSource1()); // $ ir MISSING: ast
|
||||
sink(readGlobalBottom()->isSource1()); // $ MISSING: ast,ir
|
||||
|
||||
globalBottom = new Bottom();
|
||||
globalMiddle = new Middle();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import cpp
|
||||
import semmle.code.cpp.dataflow.DataFlow
|
||||
import semmle.code.cpp.dataflow.old.DataFlow
|
||||
|
||||
from DataFlow::Node nodeFrom, DataFlow::Node nodeTo
|
||||
where
|
||||
|
||||
@@ -1,49 +1,5 @@
|
||||
import TestUtilities.dataflow.FlowTestCommon
|
||||
|
||||
module AstTest {
|
||||
private import semmle.code.cpp.dataflow.DataFlow
|
||||
private import semmle.code.cpp.controlflow.Guards
|
||||
|
||||
/**
|
||||
* A `BarrierGuard` that stops flow to all occurrences of `x` within statement
|
||||
* S in `if (guarded(x)) S`.
|
||||
*/
|
||||
// This is tested in `BarrierGuard.cpp`.
|
||||
predicate testBarrierGuard(GuardCondition g, Expr checked, boolean isTrue) {
|
||||
g.(FunctionCall).getTarget().getName() = "guarded" and
|
||||
checked = g.(FunctionCall).getArgument(0) and
|
||||
isTrue = true
|
||||
}
|
||||
|
||||
/** Common data flow configuration to be used by tests. */
|
||||
class AstTestAllocationConfig extends DataFlow::Configuration {
|
||||
AstTestAllocationConfig() { this = "ASTTestAllocationConfig" }
|
||||
|
||||
override predicate isSource(DataFlow::Node source) {
|
||||
source.asExpr().(FunctionCall).getTarget().getName() = "source"
|
||||
or
|
||||
source.asParameter().getName().matches("source%")
|
||||
or
|
||||
source.(DataFlow::DefinitionByReferenceNode).getParameter().getName().matches("ref_source%")
|
||||
or
|
||||
// Track uninitialized variables
|
||||
exists(source.asUninitialized())
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
exists(FunctionCall call |
|
||||
call.getTarget().getName() = "sink" and
|
||||
sink.asExpr() = call.getAnArgument()
|
||||
)
|
||||
}
|
||||
|
||||
override predicate isBarrier(DataFlow::Node barrier) {
|
||||
barrier.asExpr().(VariableAccess).getTarget().hasName("barrier") or
|
||||
barrier = DataFlow::BarrierGuard<testBarrierGuard/3>::getABarrierNode()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module IRTest {
|
||||
private import semmle.code.cpp.ir.dataflow.DataFlow
|
||||
private import semmle.code.cpp.ir.IR
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import semmle.code.cpp.dataflow.internal.FlowVar
|
||||
import semmle.code.cpp.dataflow.old.internal.FlowVar
|
||||
|
||||
from Variable var, VariableAccess va
|
||||
where FlowVar_internal::mayBeUsedUninitialized(var, va)
|
||||
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
B *b = new B();
|
||||
b->set(new C1());
|
||||
sink(b->get()); // $ ast ir=55:12
|
||||
sink((new B(new C()))->get()); // $ ast,ir
|
||||
sink((new B(new C()))->get()); // $ ast ir=57:17
|
||||
}
|
||||
|
||||
void f3()
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
{
|
||||
B *b = new B();
|
||||
f7(b);
|
||||
sink(b->c); // $ ast,ir
|
||||
sink(b->c); // $ ast ir=126:12
|
||||
}
|
||||
|
||||
class D
|
||||
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
{
|
||||
sink(s1); // $ast,ir
|
||||
sink(s2); // $ MISSING: ast,ir
|
||||
sink(s3); // $ast MISSING: ir
|
||||
sink(s3); // $ast,ir
|
||||
sink(s4); // $ MISSING: ast,ir
|
||||
}
|
||||
};
|
||||
|
||||
@@ -18,7 +18,7 @@ void sink(char *b);
|
||||
|
||||
void handlePacket(packet *p)
|
||||
{
|
||||
sink(p->data.buffer); // $ ast,ir
|
||||
sink(p->data.buffer); // $ ast MISSING: ir
|
||||
}
|
||||
|
||||
void f(buf* b)
|
||||
@@ -28,7 +28,7 @@ void f(buf* b)
|
||||
argument_source(raw);
|
||||
argument_source(b->buffer);
|
||||
argument_source(p.data.buffer);
|
||||
sink(raw); // $ ast,ir
|
||||
sink(b->buffer); // $ ast,ir
|
||||
sink(raw); // $ ast MISSING: ir
|
||||
sink(b->buffer); // $ ast MISSING: ir
|
||||
handlePacket(&p);
|
||||
}
|
||||
@@ -99,7 +99,7 @@ void addressOfField() {
|
||||
|
||||
S s_copy = s;
|
||||
int* px = &s_copy.m1;
|
||||
sink(*px); // $ MISSING: ast,ir
|
||||
sink(*px); // $ ir MISSING: ast
|
||||
}
|
||||
|
||||
void taint_a_ptr(int* pa) {
|
||||
@@ -119,22 +119,22 @@ struct S_with_pointer {
|
||||
|
||||
void pointer_deref(int* xs) {
|
||||
taint_a_ptr(xs);
|
||||
sink(xs[0]); // $ MISSING: ast,ir
|
||||
sink(xs[0]); // $ ir MISSING: ast
|
||||
}
|
||||
|
||||
void pointer_deref_sub(int* xs) {
|
||||
taint_a_ptr(xs - 2);
|
||||
sink(*(xs - 2)); // $ MISSING: ast,ir
|
||||
sink(*(xs - 2)); // $ ir MISSING: ast
|
||||
}
|
||||
|
||||
void pointer_many_addrof_and_deref(int* xs) {
|
||||
taint_a_ptr(xs);
|
||||
sink(*&*&*xs); // $ MISSING: ast,ir
|
||||
sink(*&*&*xs); // $ ir MISSING: ast
|
||||
}
|
||||
|
||||
void pointer_unary_plus(int* xs) {
|
||||
taint_a_ptr(+xs);
|
||||
sink(*+xs); // $ MISSING: ast,ir
|
||||
sink(*+xs); // $ ir MISSING: ast
|
||||
}
|
||||
|
||||
void pointer_member_index(S_with_pointer s) {
|
||||
|
||||
@@ -17,7 +17,7 @@ void sink(void*);
|
||||
void pointer_without_allocation_2() {
|
||||
char *raw;
|
||||
argument_source(raw);
|
||||
sink(raw); // $ ast,ir
|
||||
sink(raw); // $ ast MISSING: ir
|
||||
}
|
||||
|
||||
A* makeA() {
|
||||
|
||||
@@ -1 +1 @@
|
||||
import semmle.code.cpp.dataflow.internal.DataFlowImplConsistency::Consistency
|
||||
import semmle.code.cpp.dataflow.old.internal.DataFlowImplConsistency::Consistency
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,147 +1,358 @@
|
||||
| A.cpp:25:13:25:13 | c | AST only |
|
||||
| A.cpp:27:28:27:28 | c | AST only |
|
||||
| A.cpp:31:14:31:21 | new | IR only |
|
||||
| A.cpp:40:15:40:21 | 0 | IR only |
|
||||
| A.cpp:41:15:41:21 | new | IR only |
|
||||
| A.cpp:41:15:41:21 | new | IR only |
|
||||
| A.cpp:47:12:47:18 | new | IR only |
|
||||
| A.cpp:54:12:54:18 | new | IR only |
|
||||
| A.cpp:55:12:55:19 | new | IR only |
|
||||
| A.cpp:55:12:55:19 | new | IR only |
|
||||
| A.cpp:57:11:57:24 | new | IR only |
|
||||
| A.cpp:57:11:57:24 | new | IR only |
|
||||
| A.cpp:57:17:57:23 | new | IR only |
|
||||
| A.cpp:57:17:57:23 | new | IR only |
|
||||
| A.cpp:62:13:62:19 | new | IR only |
|
||||
| A.cpp:64:21:64:28 | new | IR only |
|
||||
| A.cpp:64:21:64:28 | new | IR only |
|
||||
| A.cpp:71:13:71:19 | new | IR only |
|
||||
| A.cpp:73:25:73:32 | new | IR only |
|
||||
| A.cpp:73:25:73:32 | new | IR only |
|
||||
| A.cpp:89:15:89:21 | new | IR only |
|
||||
| A.cpp:99:14:99:21 | new | IR only |
|
||||
| A.cpp:28:29:28:29 | this | IR only |
|
||||
| A.cpp:31:20:31:20 | c | AST only |
|
||||
| A.cpp:40:5:40:6 | cc | AST only |
|
||||
| A.cpp:41:5:41:6 | ct | AST only |
|
||||
| A.cpp:42:10:42:12 | & ... | AST only |
|
||||
| A.cpp:43:10:43:12 | & ... | AST only |
|
||||
| A.cpp:48:20:48:20 | c | AST only |
|
||||
| A.cpp:49:13:49:13 | c | AST only |
|
||||
| A.cpp:55:5:55:5 | b | AST only |
|
||||
| A.cpp:56:10:56:10 | b | AST only |
|
||||
| A.cpp:56:13:56:15 | call to get | AST only |
|
||||
| A.cpp:57:28:57:30 | call to get | AST only |
|
||||
| A.cpp:64:10:64:15 | this | AST only |
|
||||
| A.cpp:64:17:64:18 | b1 | AST only |
|
||||
| A.cpp:65:14:65:14 | c | AST only |
|
||||
| A.cpp:66:14:66:14 | c | AST only |
|
||||
| A.cpp:73:10:73:19 | this | AST only |
|
||||
| A.cpp:73:21:73:22 | b1 | AST only |
|
||||
| A.cpp:74:14:74:14 | c | AST only |
|
||||
| A.cpp:75:14:75:14 | c | AST only |
|
||||
| A.cpp:81:10:81:15 | this | AST only |
|
||||
| A.cpp:81:17:81:18 | b1 | AST only |
|
||||
| A.cpp:81:21:81:21 | c | AST only |
|
||||
| A.cpp:82:12:82:12 | this | AST only |
|
||||
| A.cpp:87:9:87:9 | this | AST only |
|
||||
| A.cpp:90:7:90:8 | b2 | AST only |
|
||||
| A.cpp:90:15:90:15 | c | AST only |
|
||||
| A.cpp:100:9:100:9 | a | AST only |
|
||||
| A.cpp:116:12:116:19 | new | IR only |
|
||||
| A.cpp:126:12:126:18 | new | IR only |
|
||||
| A.cpp:126:12:126:18 | new | IR only |
|
||||
| A.cpp:130:12:130:18 | new | IR only |
|
||||
| A.cpp:101:5:101:6 | this | AST only |
|
||||
| A.cpp:101:8:101:9 | c1 | AST only |
|
||||
| A.cpp:107:16:107:16 | a | AST only |
|
||||
| A.cpp:120:16:120:16 | a | AST only |
|
||||
| A.cpp:126:5:126:5 | b | AST only |
|
||||
| A.cpp:131:5:131:6 | this | AST only |
|
||||
| A.cpp:131:8:131:8 | b | AST only |
|
||||
| A.cpp:132:13:132:13 | c | AST only |
|
||||
| A.cpp:142:10:142:10 | c | AST only |
|
||||
| A.cpp:142:14:142:20 | new | IR only |
|
||||
| A.cpp:143:13:143:13 | b | AST only |
|
||||
| A.cpp:143:25:143:31 | new | IR only |
|
||||
| A.cpp:150:12:150:18 | new | IR only |
|
||||
| A.cpp:151:12:151:24 | new | IR only |
|
||||
| A.cpp:159:12:159:18 | new | IR only |
|
||||
| A.cpp:160:18:160:60 | new | IR only |
|
||||
| A.cpp:160:32:160:59 | new | IR only |
|
||||
| A.cpp:160:32:160:59 | new | IR only |
|
||||
| A.cpp:160:43:160:49 | 0 | IR only |
|
||||
| A.cpp:160:52:160:58 | 0 | IR only |
|
||||
| A.cpp:161:18:161:40 | new | IR only |
|
||||
| A.cpp:161:29:161:35 | 0 | IR only |
|
||||
| A.cpp:162:18:162:40 | new | IR only |
|
||||
| A.cpp:162:29:162:35 | 0 | IR only |
|
||||
| A.cpp:151:18:151:18 | b | AST only |
|
||||
| A.cpp:151:21:151:21 | this | AST only |
|
||||
| A.cpp:152:13:152:13 | b | AST only |
|
||||
| A.cpp:153:16:153:16 | c | AST only |
|
||||
| A.cpp:154:13:154:13 | c | AST only |
|
||||
| A.cpp:160:29:160:29 | b | AST only |
|
||||
| A.cpp:161:38:161:39 | l1 | AST only |
|
||||
| A.cpp:162:38:162:39 | l2 | AST only |
|
||||
| A.cpp:163:14:163:17 | head | AST only |
|
||||
| A.cpp:164:20:164:23 | head | AST only |
|
||||
| A.cpp:165:26:165:29 | head | AST only |
|
||||
| A.cpp:166:32:166:35 | head | AST only |
|
||||
| A.cpp:167:47:167:50 | l | IR only |
|
||||
| A.cpp:169:15:169:18 | head | AST only |
|
||||
| A.cpp:183:7:183:10 | head | AST only |
|
||||
| A.cpp:184:13:184:16 | next | AST only |
|
||||
| B.cpp:7:16:7:35 | new | IR only |
|
||||
| B.cpp:7:28:7:34 | 0 | IR only |
|
||||
| B.cpp:8:16:8:27 | new | IR only |
|
||||
| B.cpp:16:16:16:38 | new | IR only |
|
||||
| B.cpp:16:28:16:34 | 0 | IR only |
|
||||
| B.cpp:17:16:17:27 | new | IR only |
|
||||
| B.cpp:7:25:7:25 | e | AST only |
|
||||
| B.cpp:8:25:8:26 | b1 | AST only |
|
||||
| B.cpp:9:20:9:24 | elem1 | AST only |
|
||||
| B.cpp:10:20:10:24 | elem2 | AST only |
|
||||
| B.cpp:16:37:16:37 | e | AST only |
|
||||
| B.cpp:17:25:17:26 | b1 | AST only |
|
||||
| B.cpp:18:20:18:24 | elem1 | AST only |
|
||||
| B.cpp:19:20:19:24 | elem2 | AST only |
|
||||
| B.cpp:35:13:35:17 | elem1 | AST only |
|
||||
| B.cpp:36:13:36:17 | elem2 | AST only |
|
||||
| B.cpp:46:13:46:16 | box1 | AST only |
|
||||
| C.cpp:18:12:18:18 | new | IR only |
|
||||
| C.cpp:19:5:19:5 | c | AST only |
|
||||
| C.cpp:24:11:24:12 | s3 | AST only |
|
||||
| C.cpp:30:10:30:11 | s2 | IR only |
|
||||
| C.cpp:29:10:29:11 | s1 | AST only |
|
||||
| C.cpp:30:10:30:11 | this | IR only |
|
||||
| C.cpp:32:10:32:11 | s4 | IR only |
|
||||
| C.cpp:31:10:31:11 | s3 | AST only |
|
||||
| D.cpp:9:21:9:24 | elem | AST only |
|
||||
| D.cpp:10:30:10:33 | this | IR only |
|
||||
| D.cpp:11:29:11:32 | elem | AST only |
|
||||
| D.cpp:16:21:16:23 | box | AST only |
|
||||
| D.cpp:17:30:17:32 | this | IR only |
|
||||
| D.cpp:18:29:18:31 | box | AST only |
|
||||
| D.cpp:29:15:29:41 | new | IR only |
|
||||
| D.cpp:29:24:29:40 | new | IR only |
|
||||
| D.cpp:29:24:29:40 | new | IR only |
|
||||
| D.cpp:29:33:29:39 | 0 | IR only |
|
||||
| D.cpp:22:10:22:11 | b2 | AST only |
|
||||
| D.cpp:22:14:22:20 | call to getBox1 | AST only |
|
||||
| D.cpp:22:25:22:31 | call to getElem | AST only |
|
||||
| D.cpp:30:13:30:16 | elem | AST only |
|
||||
| D.cpp:36:15:36:41 | new | IR only |
|
||||
| D.cpp:36:24:36:40 | new | IR only |
|
||||
| D.cpp:36:24:36:40 | new | IR only |
|
||||
| D.cpp:36:33:36:39 | 0 | IR only |
|
||||
| D.cpp:43:15:43:41 | new | IR only |
|
||||
| D.cpp:43:24:43:40 | new | IR only |
|
||||
| D.cpp:43:24:43:40 | new | IR only |
|
||||
| D.cpp:43:33:43:39 | 0 | IR only |
|
||||
| D.cpp:31:14:31:14 | b | AST only |
|
||||
| D.cpp:37:8:37:10 | box | AST only |
|
||||
| D.cpp:37:21:37:21 | e | AST only |
|
||||
| D.cpp:38:14:38:14 | b | AST only |
|
||||
| D.cpp:44:5:44:5 | b | AST only |
|
||||
| D.cpp:44:19:44:22 | elem | AST only |
|
||||
| D.cpp:50:15:50:41 | new | IR only |
|
||||
| D.cpp:50:24:50:40 | new | IR only |
|
||||
| D.cpp:50:24:50:40 | new | IR only |
|
||||
| D.cpp:50:33:50:39 | 0 | IR only |
|
||||
| D.cpp:45:14:45:14 | b | AST only |
|
||||
| D.cpp:51:5:51:5 | b | AST only |
|
||||
| D.cpp:51:8:51:14 | call to getBox1 | AST only |
|
||||
| D.cpp:51:27:51:27 | e | AST only |
|
||||
| D.cpp:52:14:52:14 | b | AST only |
|
||||
| D.cpp:57:5:57:12 | boxfield | AST only |
|
||||
| D.cpp:57:16:57:42 | new | IR only |
|
||||
| D.cpp:57:25:57:41 | new | IR only |
|
||||
| D.cpp:57:25:57:41 | new | IR only |
|
||||
| D.cpp:57:34:57:40 | 0 | IR only |
|
||||
| D.cpp:58:20:58:23 | elem | AST only |
|
||||
| D.cpp:59:5:59:7 | this | AST only |
|
||||
| D.cpp:64:25:64:28 | elem | AST only |
|
||||
| E.cpp:21:18:21:23 | buffer | AST only |
|
||||
| E.cpp:28:21:28:23 | raw | AST only |
|
||||
| E.cpp:29:24:29:29 | buffer | AST only |
|
||||
| E.cpp:30:28:30:33 | buffer | AST only |
|
||||
| E.cpp:31:10:31:12 | raw | AST only |
|
||||
| E.cpp:32:13:32:18 | buffer | AST only |
|
||||
| E.cpp:33:18:33:19 | & ... | AST only |
|
||||
| aliasing.cpp:9:6:9:7 | m1 | AST only |
|
||||
| aliasing.cpp:13:5:13:6 | m1 | AST only |
|
||||
| aliasing.cpp:17:5:17:6 | m1 | AST only |
|
||||
| aliasing.cpp:25:17:25:19 | & ... | AST only |
|
||||
| aliasing.cpp:26:19:26:20 | s2 | AST only |
|
||||
| aliasing.cpp:29:11:29:12 | s1 | IR only |
|
||||
| aliasing.cpp:30:11:30:12 | s2 | IR only |
|
||||
| aliasing.cpp:31:11:31:12 | s3 | IR only |
|
||||
| aliasing.cpp:37:8:37:9 | m1 | AST only |
|
||||
| aliasing.cpp:38:11:38:12 | s1 | IR only |
|
||||
| aliasing.cpp:42:6:42:7 | m1 | AST only |
|
||||
| aliasing.cpp:43:13:43:14 | ref2 | IR only |
|
||||
| aliasing.cpp:49:9:49:10 | m1 | AST only |
|
||||
| aliasing.cpp:50:11:50:12 | s1 | IR only |
|
||||
| aliasing.cpp:54:6:54:7 | m1 | AST only |
|
||||
| aliasing.cpp:55:14:55:15 | copy2 | IR only |
|
||||
| aliasing.cpp:60:6:60:7 | m1 | AST only |
|
||||
| aliasing.cpp:62:14:62:15 | copy2 | IR only |
|
||||
| aliasing.cpp:71:11:71:11 | w | IR only |
|
||||
| aliasing.cpp:72:5:72:6 | m1 | AST only |
|
||||
| aliasing.cpp:73:10:73:10 | w | IR only |
|
||||
| aliasing.cpp:73:12:73:13 | s | IR only |
|
||||
| aliasing.cpp:78:13:78:13 | w | IR only |
|
||||
| aliasing.cpp:79:6:79:7 | m1 | AST only |
|
||||
| aliasing.cpp:80:10:80:10 | w | IR only |
|
||||
| aliasing.cpp:80:12:80:13 | s | IR only |
|
||||
| aliasing.cpp:85:12:85:12 | w | IR only |
|
||||
| aliasing.cpp:86:5:86:6 | m1 | AST only |
|
||||
| aliasing.cpp:87:10:87:10 | w | IR only |
|
||||
| aliasing.cpp:87:12:87:13 | s | IR only |
|
||||
| aliasing.cpp:92:7:92:8 | m1 | AST only |
|
||||
| aliasing.cpp:93:10:93:10 | w | IR only |
|
||||
| aliasing.cpp:93:12:93:13 | s | IR only |
|
||||
| aliasing.cpp:98:5:98:6 | m1 | AST only |
|
||||
| aliasing.cpp:101:21:101:22 | s_copy | IR only |
|
||||
| aliasing.cpp:106:3:106:5 | * ... | AST only |
|
||||
| aliasing.cpp:111:15:111:19 | & ... | AST only |
|
||||
| aliasing.cpp:112:10:112:11 | s | IR only |
|
||||
| aliasing.cpp:121:15:121:16 | xs | AST only |
|
||||
| aliasing.cpp:126:15:126:20 | ... - ... | AST only |
|
||||
| aliasing.cpp:131:15:131:16 | xs | AST only |
|
||||
| aliasing.cpp:136:15:136:17 | + ... | AST only |
|
||||
| aliasing.cpp:141:17:141:20 | data | AST only |
|
||||
| aliasing.cpp:143:10:143:13 | s | IR only |
|
||||
| aliasing.cpp:147:15:147:22 | & ... | AST only |
|
||||
| aliasing.cpp:148:13:148:14 | access to array | IR only |
|
||||
| aliasing.cpp:158:17:158:20 | data | AST only |
|
||||
| aliasing.cpp:159:11:159:14 | s | IR only |
|
||||
| aliasing.cpp:164:17:164:20 | data | AST only |
|
||||
| aliasing.cpp:165:10:165:13 | s | IR only |
|
||||
| aliasing.cpp:175:15:175:22 | & ... | AST only |
|
||||
| aliasing.cpp:176:11:176:11 | s2 | IR only |
|
||||
| aliasing.cpp:176:13:176:14 | s | IR only |
|
||||
| aliasing.cpp:181:15:181:22 | & ... | AST only |
|
||||
| aliasing.cpp:182:11:182:11 | s2 | IR only |
|
||||
| aliasing.cpp:182:13:182:14 | s | IR only |
|
||||
| aliasing.cpp:187:15:187:22 | & ... | AST only |
|
||||
| aliasing.cpp:189:13:189:13 | s2_2 | IR only |
|
||||
| aliasing.cpp:189:15:189:16 | s | IR only |
|
||||
| aliasing.cpp:194:15:194:22 | & ... | AST only |
|
||||
| aliasing.cpp:196:13:196:13 | s2_2 | IR only |
|
||||
| aliasing.cpp:196:15:196:16 | s | IR only |
|
||||
| aliasing.cpp:200:15:200:24 | & ... | AST only |
|
||||
| aliasing.cpp:201:13:201:13 | ps2 | IR only |
|
||||
| aliasing.cpp:201:15:201:16 | s | IR only |
|
||||
| aliasing.cpp:205:15:205:24 | & ... | AST only |
|
||||
| aliasing.cpp:206:13:206:13 | ps2 | IR only |
|
||||
| aliasing.cpp:206:15:206:16 | s | IR only |
|
||||
| arrays.cpp:6:3:6:8 | access to array | AST only |
|
||||
| arrays.cpp:7:8:7:13 | access to array | IR only |
|
||||
| arrays.cpp:8:8:8:13 | access to array | IR only |
|
||||
| arrays.cpp:9:8:9:11 | * ... | IR only |
|
||||
| arrays.cpp:10:8:10:15 | * ... | IR only |
|
||||
| arrays.cpp:15:3:15:10 | * ... | AST only |
|
||||
| arrays.cpp:16:8:16:13 | access to array | IR only |
|
||||
| arrays.cpp:17:8:17:13 | access to array | IR only |
|
||||
| arrays.cpp:36:19:36:22 | data | AST only |
|
||||
| arrays.cpp:37:24:37:27 | data | AST only |
|
||||
| arrays.cpp:38:24:38:27 | data | AST only |
|
||||
| arrays.cpp:42:22:42:25 | data | AST only |
|
||||
| arrays.cpp:43:27:43:30 | data | AST only |
|
||||
| arrays.cpp:44:27:44:30 | data | AST only |
|
||||
| arrays.cpp:48:22:48:25 | data | AST only |
|
||||
| arrays.cpp:49:27:49:30 | data | AST only |
|
||||
| arrays.cpp:50:27:50:30 | data | AST only |
|
||||
| by_reference.cpp:12:8:12:8 | a | AST only |
|
||||
| by_reference.cpp:16:11:16:11 | a | AST only |
|
||||
| by_reference.cpp:20:5:20:8 | this | AST only |
|
||||
| by_reference.cpp:20:23:20:27 | value | AST only |
|
||||
| by_reference.cpp:24:19:24:22 | this | AST only |
|
||||
| by_reference.cpp:24:25:24:29 | value | AST only |
|
||||
| by_reference.cpp:32:15:32:15 | s | IR only |
|
||||
| by_reference.cpp:36:18:36:18 | this | IR only |
|
||||
| by_reference.cpp:40:12:40:15 | this | AST only |
|
||||
| by_reference.cpp:50:3:50:3 | s | AST only |
|
||||
| by_reference.cpp:50:17:50:26 | call to user_input | AST only |
|
||||
| by_reference.cpp:51:8:51:8 | s | AST only |
|
||||
| by_reference.cpp:51:10:51:20 | call to getDirectly | AST only |
|
||||
| by_reference.cpp:56:3:56:3 | s | AST only |
|
||||
| by_reference.cpp:56:19:56:28 | call to user_input | AST only |
|
||||
| by_reference.cpp:57:8:57:8 | s | AST only |
|
||||
| by_reference.cpp:57:10:57:22 | call to getIndirectly | AST only |
|
||||
| by_reference.cpp:62:3:62:3 | s | AST only |
|
||||
| by_reference.cpp:62:25:62:34 | call to user_input | AST only |
|
||||
| by_reference.cpp:63:8:63:8 | s | AST only |
|
||||
| by_reference.cpp:63:10:63:28 | call to getThroughNonMember | AST only |
|
||||
| by_reference.cpp:68:17:68:18 | & ... | AST only |
|
||||
| by_reference.cpp:68:21:68:30 | call to user_input | AST only |
|
||||
| by_reference.cpp:69:8:69:20 | call to nonMemberGetA | AST only |
|
||||
| by_reference.cpp:84:10:84:10 | a | AST only |
|
||||
| by_reference.cpp:88:9:88:9 | a | AST only |
|
||||
| by_reference.cpp:92:3:92:5 | * ... | AST only |
|
||||
| by_reference.cpp:96:3:96:4 | pa | AST only |
|
||||
| by_reference.cpp:102:21:102:39 | & ... | AST only |
|
||||
| by_reference.cpp:103:27:103:35 | inner_ptr | AST only |
|
||||
| by_reference.cpp:104:15:104:22 | & ... | AST only |
|
||||
| by_reference.cpp:106:21:106:41 | & ... | AST only |
|
||||
| by_reference.cpp:107:29:107:37 | inner_ptr | AST only |
|
||||
| by_reference.cpp:108:15:108:24 | & ... | AST only |
|
||||
| by_reference.cpp:110:27:110:27 | a | AST only |
|
||||
| by_reference.cpp:111:25:111:25 | a | AST only |
|
||||
| by_reference.cpp:112:14:112:14 | a | AST only |
|
||||
| by_reference.cpp:114:29:114:29 | a | AST only |
|
||||
| by_reference.cpp:115:27:115:27 | a | AST only |
|
||||
| by_reference.cpp:116:16:116:16 | a | AST only |
|
||||
| by_reference.cpp:122:27:122:38 | inner_nested | AST only |
|
||||
| by_reference.cpp:123:21:123:36 | * ... | AST only |
|
||||
| by_reference.cpp:124:21:124:21 | a | AST only |
|
||||
| by_reference.cpp:126:29:126:40 | inner_nested | AST only |
|
||||
| by_reference.cpp:127:21:127:38 | * ... | AST only |
|
||||
| by_reference.cpp:128:23:128:23 | a | AST only |
|
||||
| by_reference.cpp:130:27:130:27 | a | AST only |
|
||||
| by_reference.cpp:131:25:131:25 | a | AST only |
|
||||
| by_reference.cpp:132:14:132:14 | a | AST only |
|
||||
| by_reference.cpp:134:29:134:29 | a | AST only |
|
||||
| by_reference.cpp:135:27:135:27 | a | AST only |
|
||||
| by_reference.cpp:136:16:136:16 | a | AST only |
|
||||
| complex.cpp:9:20:9:21 | this | IR only |
|
||||
| complex.cpp:10:20:10:21 | this | IR only |
|
||||
| complex.cpp:11:22:11:23 | a_ | AST only |
|
||||
| complex.cpp:12:22:12:23 | b_ | AST only |
|
||||
| complex.cpp:42:16:42:16 | f | AST only |
|
||||
| complex.cpp:43:16:43:16 | f | AST only |
|
||||
| complex.cpp:53:12:53:12 | f | AST only |
|
||||
| complex.cpp:54:12:54:12 | f | AST only |
|
||||
| complex.cpp:55:12:55:12 | f | AST only |
|
||||
| complex.cpp:56:12:56:12 | f | AST only |
|
||||
| complex.cpp:59:7:59:8 | b1 | AST only |
|
||||
| complex.cpp:62:7:62:8 | b2 | AST only |
|
||||
| complex.cpp:65:7:65:8 | b3 | AST only |
|
||||
| complex.cpp:68:7:68:8 | b4 | AST only |
|
||||
| conflated.cpp:10:3:10:7 | * ... | AST only |
|
||||
| conflated.cpp:11:12:11:12 | ra | IR only |
|
||||
| conflated.cpp:19:19:19:21 | raw | AST only |
|
||||
| conflated.cpp:20:8:20:10 | raw | AST only |
|
||||
| conflated.cpp:29:7:29:7 | x | AST only |
|
||||
| conflated.cpp:30:12:30:12 | pa | IR only |
|
||||
| conflated.cpp:36:7:36:7 | x | AST only |
|
||||
| conflated.cpp:37:12:37:12 | pa | IR only |
|
||||
| conflated.cpp:53:7:53:10 | next | AST only |
|
||||
| conflated.cpp:54:13:54:13 | y | AST only |
|
||||
| conflated.cpp:59:20:59:39 | new | IR only |
|
||||
| conflated.cpp:55:12:55:15 | ll | IR only |
|
||||
| conflated.cpp:55:18:55:18 | next | IR only |
|
||||
| conflated.cpp:59:35:59:38 | next | AST only |
|
||||
| conflated.cpp:60:13:60:13 | y | AST only |
|
||||
| conflated.cpp:61:12:61:15 | ll | IR only |
|
||||
| conflated.cpp:61:18:61:18 | next | IR only |
|
||||
| constructors.cpp:18:22:18:23 | this | IR only |
|
||||
| constructors.cpp:19:22:19:23 | this | IR only |
|
||||
| constructors.cpp:20:24:20:25 | a_ | AST only |
|
||||
| constructors.cpp:21:24:21:25 | b_ | AST only |
|
||||
| constructors.cpp:28:10:28:10 | f | AST only |
|
||||
| constructors.cpp:29:10:29:10 | f | AST only |
|
||||
| constructors.cpp:40:9:40:9 | f | AST only |
|
||||
| constructors.cpp:43:9:43:9 | g | AST only |
|
||||
| constructors.cpp:46:9:46:9 | h | AST only |
|
||||
| constructors.cpp:49:9:49:9 | i | AST only |
|
||||
| qualifiers.cpp:9:36:9:36 | a | AST only |
|
||||
| qualifiers.cpp:12:56:12:56 | a | AST only |
|
||||
| qualifiers.cpp:13:57:13:57 | a | AST only |
|
||||
| qualifiers.cpp:18:32:18:36 | this | IR only |
|
||||
| qualifiers.cpp:22:5:22:9 | outer | AST only |
|
||||
| qualifiers.cpp:22:23:22:23 | a | AST only |
|
||||
| qualifiers.cpp:23:23:23:23 | a | AST only |
|
||||
| qualifiers.cpp:27:5:27:9 | outer | AST only |
|
||||
| qualifiers.cpp:27:11:27:18 | call to getInner | AST only |
|
||||
| qualifiers.cpp:27:28:27:37 | call to user_input | AST only |
|
||||
| qualifiers.cpp:28:23:28:23 | a | AST only |
|
||||
| qualifiers.cpp:32:17:32:21 | outer | AST only |
|
||||
| qualifiers.cpp:32:23:32:30 | call to getInner | AST only |
|
||||
| qualifiers.cpp:32:35:32:44 | call to user_input | AST only |
|
||||
| qualifiers.cpp:33:23:33:23 | a | AST only |
|
||||
| qualifiers.cpp:37:19:37:35 | * ... | AST only |
|
||||
| qualifiers.cpp:37:20:37:24 | outer | AST only |
|
||||
| qualifiers.cpp:37:38:37:47 | call to user_input | AST only |
|
||||
| qualifiers.cpp:38:23:38:23 | a | AST only |
|
||||
| qualifiers.cpp:42:7:42:11 | outer | AST only |
|
||||
| qualifiers.cpp:42:25:42:25 | a | AST only |
|
||||
| qualifiers.cpp:43:23:43:23 | a | AST only |
|
||||
| qualifiers.cpp:47:6:47:11 | & ... | AST only |
|
||||
| qualifiers.cpp:47:27:47:27 | a | AST only |
|
||||
| qualifiers.cpp:48:23:48:23 | a | AST only |
|
||||
| realistic.cpp:26:5:26:10 | offset | AST only |
|
||||
| realistic.cpp:42:20:42:20 | o | AST only |
|
||||
| realistic.cpp:49:20:49:22 | baz | AST only |
|
||||
| realistic.cpp:53:35:53:43 | bufferLen | AST only |
|
||||
| realistic.cpp:54:42:54:47 | buffer | AST only |
|
||||
| realistic.cpp:55:16:55:18 | foo | IR only |
|
||||
| realistic.cpp:55:23:55:25 | access to array | IR only |
|
||||
| realistic.cpp:55:28:55:36 | baz | IR only |
|
||||
| realistic.cpp:55:38:55:46 | userInput | IR only |
|
||||
| realistic.cpp:57:92:57:94 | foo | IR only |
|
||||
| realistic.cpp:57:99:57:101 | access to array | IR only |
|
||||
| realistic.cpp:57:104:57:112 | baz | IR only |
|
||||
| realistic.cpp:57:114:57:122 | userInput | IR only |
|
||||
| realistic.cpp:60:16:60:18 | dst | AST only |
|
||||
| realistic.cpp:60:25:60:27 | foo | IR only |
|
||||
| realistic.cpp:60:32:60:34 | access to array | IR only |
|
||||
| realistic.cpp:60:37:60:45 | baz | IR only |
|
||||
| realistic.cpp:60:47:60:52 | userInput | IR only |
|
||||
| realistic.cpp:60:59:60:61 | foo | IR only |
|
||||
| realistic.cpp:60:66:60:68 | access to array | IR only |
|
||||
| realistic.cpp:60:71:60:79 | baz | IR only |
|
||||
| realistic.cpp:60:81:60:89 | userInput | IR only |
|
||||
| realistic.cpp:61:47:61:55 | bufferLen | AST only |
|
||||
| realistic.cpp:65:47:65:52 | buffer | AST only |
|
||||
| realistic.cpp:66:21:66:23 | dst | AST only |
|
||||
| simple.cpp:18:22:18:23 | this | IR only |
|
||||
| simple.cpp:19:22:19:23 | this | IR only |
|
||||
| simple.cpp:20:24:20:25 | a_ | AST only |
|
||||
| simple.cpp:21:24:21:25 | b_ | AST only |
|
||||
| simple.cpp:28:10:28:10 | f | AST only |
|
||||
| simple.cpp:29:10:29:10 | f | AST only |
|
||||
| simple.cpp:39:5:39:5 | f | AST only |
|
||||
| simple.cpp:40:5:40:5 | g | AST only |
|
||||
| simple.cpp:41:5:41:5 | h | AST only |
|
||||
| simple.cpp:42:5:42:5 | h | AST only |
|
||||
| simple.cpp:45:9:45:9 | f | AST only |
|
||||
| simple.cpp:48:9:48:9 | g | AST only |
|
||||
| simple.cpp:51:9:51:9 | h | AST only |
|
||||
| simple.cpp:54:9:54:9 | i | AST only |
|
||||
| simple.cpp:65:7:65:7 | i | AST only |
|
||||
| simple.cpp:67:13:67:13 | a2 | IR only |
|
||||
| simple.cpp:79:16:79:17 | this | IR only |
|
||||
| simple.cpp:79:19:79:20 | f2 | IR only |
|
||||
| simple.cpp:83:12:83:13 | f1 | AST only |
|
||||
| simple.cpp:84:14:84:20 | this | AST only |
|
||||
| simple.cpp:92:7:92:7 | i | AST only |
|
||||
| simple.cpp:94:13:94:13 | a2 | IR only |
|
||||
| struct_init.c:15:12:15:12 | a | AST only |
|
||||
| struct_init.c:16:12:16:12 | b | AST only |
|
||||
| struct_init.c:22:11:22:11 | a | AST only |
|
||||
| struct_init.c:23:11:23:11 | b | AST only |
|
||||
| struct_init.c:24:10:24:12 | & ... | AST only |
|
||||
| struct_init.c:31:23:31:23 | a | AST only |
|
||||
| struct_init.c:32:23:32:23 | b | AST only |
|
||||
| struct_init.c:33:25:33:25 | a | AST only |
|
||||
| struct_init.c:34:25:34:25 | b | AST only |
|
||||
| struct_init.c:36:10:36:24 | & ... | AST only |
|
||||
| struct_init.c:46:16:46:24 | pointerAB | AST only |
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import cpp
|
||||
import semmle.code.cpp.ir.dataflow.DataFlow::DataFlow as IR
|
||||
import semmle.code.cpp.dataflow.DataFlow::DataFlow as AST
|
||||
import semmle.code.cpp.dataflow.old.DataFlow::DataFlow as AST
|
||||
import Nodes
|
||||
|
||||
class AstPartialDefNode extends AstNode {
|
||||
|
||||
@@ -1,447 +1,260 @@
|
||||
| A.cpp:25:7:25:10 | this |
|
||||
| A.cpp:27:22:27:25 | this |
|
||||
| A.cpp:31:14:31:21 | new |
|
||||
| A.cpp:31:20:31:20 | c |
|
||||
| A.cpp:40:5:40:6 | cc |
|
||||
| A.cpp:40:15:40:21 | 0 |
|
||||
| A.cpp:41:5:41:6 | ct |
|
||||
| A.cpp:41:15:41:21 | new |
|
||||
| A.cpp:42:10:42:12 | & ... |
|
||||
| A.cpp:43:10:43:12 | & ... |
|
||||
| A.cpp:47:12:47:18 | new |
|
||||
| A.cpp:48:20:48:20 | c |
|
||||
| A.cpp:28:23:28:26 | this |
|
||||
| A.cpp:49:10:49:10 | b |
|
||||
| A.cpp:49:13:49:13 | c |
|
||||
| A.cpp:54:12:54:18 | new |
|
||||
| A.cpp:55:5:55:5 | b |
|
||||
| A.cpp:55:12:55:19 | new |
|
||||
| A.cpp:56:10:56:10 | b |
|
||||
| A.cpp:56:13:56:15 | call to get |
|
||||
| A.cpp:57:11:57:24 | new |
|
||||
| A.cpp:57:17:57:23 | new |
|
||||
| A.cpp:57:28:57:30 | call to get |
|
||||
| A.cpp:62:13:62:19 | new |
|
||||
| A.cpp:64:10:64:15 | this |
|
||||
| A.cpp:64:17:64:18 | b1 |
|
||||
| A.cpp:64:21:64:28 | new |
|
||||
| A.cpp:65:10:65:11 | b1 |
|
||||
| A.cpp:65:14:65:14 | c |
|
||||
| A.cpp:66:10:66:11 | b2 |
|
||||
| A.cpp:66:14:66:14 | c |
|
||||
| A.cpp:71:13:71:19 | new |
|
||||
| A.cpp:73:10:73:19 | this |
|
||||
| A.cpp:73:21:73:22 | b1 |
|
||||
| A.cpp:73:25:73:32 | new |
|
||||
| A.cpp:74:10:74:11 | b1 |
|
||||
| A.cpp:74:14:74:14 | c |
|
||||
| A.cpp:75:10:75:11 | b2 |
|
||||
| A.cpp:75:14:75:14 | c |
|
||||
| A.cpp:81:10:81:15 | this |
|
||||
| A.cpp:81:17:81:18 | b1 |
|
||||
| A.cpp:81:21:81:21 | c |
|
||||
| A.cpp:82:12:82:12 | this |
|
||||
| A.cpp:87:9:87:9 | this |
|
||||
| A.cpp:89:15:89:21 | new |
|
||||
| A.cpp:90:7:90:8 | b2 |
|
||||
| A.cpp:90:15:90:15 | c |
|
||||
| A.cpp:99:14:99:21 | new |
|
||||
| A.cpp:100:5:100:6 | c1 |
|
||||
| A.cpp:101:5:101:6 | this |
|
||||
| A.cpp:101:8:101:9 | c1 |
|
||||
| A.cpp:107:12:107:13 | c1 |
|
||||
| A.cpp:107:16:107:16 | a |
|
||||
| A.cpp:116:12:116:19 | new |
|
||||
| A.cpp:120:12:120:13 | c1 |
|
||||
| A.cpp:120:16:120:16 | a |
|
||||
| A.cpp:126:5:126:5 | b |
|
||||
| A.cpp:126:12:126:18 | new |
|
||||
| A.cpp:130:12:130:18 | new |
|
||||
| A.cpp:131:5:131:6 | this |
|
||||
| A.cpp:131:8:131:8 | b |
|
||||
| A.cpp:132:10:132:10 | b |
|
||||
| A.cpp:132:13:132:13 | c |
|
||||
| A.cpp:142:7:142:7 | b |
|
||||
| A.cpp:142:14:142:20 | new |
|
||||
| A.cpp:143:7:143:10 | this |
|
||||
| A.cpp:143:25:143:31 | new |
|
||||
| A.cpp:150:12:150:18 | new |
|
||||
| A.cpp:151:12:151:24 | new |
|
||||
| A.cpp:151:18:151:18 | b |
|
||||
| A.cpp:151:21:151:21 | this |
|
||||
| A.cpp:152:10:152:10 | d |
|
||||
| A.cpp:152:13:152:13 | b |
|
||||
| A.cpp:153:10:153:10 | d |
|
||||
| A.cpp:153:13:153:13 | b |
|
||||
| A.cpp:153:16:153:16 | c |
|
||||
| A.cpp:154:10:154:10 | b |
|
||||
| A.cpp:154:13:154:13 | c |
|
||||
| A.cpp:159:12:159:18 | new |
|
||||
| A.cpp:160:18:160:60 | new |
|
||||
| A.cpp:160:29:160:29 | b |
|
||||
| A.cpp:160:32:160:59 | new |
|
||||
| A.cpp:160:43:160:49 | 0 |
|
||||
| A.cpp:160:52:160:58 | 0 |
|
||||
| A.cpp:161:18:161:40 | new |
|
||||
| A.cpp:161:29:161:35 | 0 |
|
||||
| A.cpp:161:38:161:39 | l1 |
|
||||
| A.cpp:162:18:162:40 | new |
|
||||
| A.cpp:162:29:162:35 | 0 |
|
||||
| A.cpp:162:38:162:39 | l2 |
|
||||
| A.cpp:163:10:163:11 | l3 |
|
||||
| A.cpp:163:14:163:17 | head |
|
||||
| A.cpp:164:10:164:11 | l3 |
|
||||
| A.cpp:164:14:164:17 | next |
|
||||
| A.cpp:164:20:164:23 | head |
|
||||
| A.cpp:165:10:165:11 | l3 |
|
||||
| A.cpp:165:14:165:17 | next |
|
||||
| A.cpp:165:20:165:23 | next |
|
||||
| A.cpp:165:26:165:29 | head |
|
||||
| A.cpp:166:10:166:11 | l3 |
|
||||
| A.cpp:166:14:166:17 | next |
|
||||
| A.cpp:166:20:166:23 | next |
|
||||
| A.cpp:166:26:166:29 | next |
|
||||
| A.cpp:166:32:166:35 | head |
|
||||
| A.cpp:167:44:167:44 | l |
|
||||
| A.cpp:169:12:169:12 | l |
|
||||
| A.cpp:169:15:169:18 | head |
|
||||
| A.cpp:183:7:183:10 | this |
|
||||
| A.cpp:184:7:184:10 | this |
|
||||
| B.cpp:7:16:7:35 | new |
|
||||
| B.cpp:7:25:7:25 | e |
|
||||
| B.cpp:7:28:7:34 | 0 |
|
||||
| B.cpp:8:16:8:27 | new |
|
||||
| B.cpp:8:25:8:26 | b1 |
|
||||
| B.cpp:9:10:9:11 | b2 |
|
||||
| B.cpp:9:14:9:17 | box1 |
|
||||
| B.cpp:9:20:9:24 | elem1 |
|
||||
| B.cpp:10:10:10:11 | b2 |
|
||||
| B.cpp:10:14:10:17 | box1 |
|
||||
| B.cpp:10:20:10:24 | elem2 |
|
||||
| B.cpp:16:16:16:38 | new |
|
||||
| B.cpp:16:28:16:34 | 0 |
|
||||
| B.cpp:16:37:16:37 | e |
|
||||
| B.cpp:17:16:17:27 | new |
|
||||
| B.cpp:17:25:17:26 | b1 |
|
||||
| B.cpp:18:10:18:11 | b2 |
|
||||
| B.cpp:18:14:18:17 | box1 |
|
||||
| B.cpp:18:20:18:24 | elem1 |
|
||||
| B.cpp:19:10:19:11 | b2 |
|
||||
| B.cpp:19:14:19:17 | box1 |
|
||||
| B.cpp:19:20:19:24 | elem2 |
|
||||
| B.cpp:35:7:35:10 | this |
|
||||
| B.cpp:36:7:36:10 | this |
|
||||
| B.cpp:46:7:46:10 | this |
|
||||
| C.cpp:18:12:18:18 | new |
|
||||
| C.cpp:19:5:19:5 | c |
|
||||
| C.cpp:24:5:24:8 | this |
|
||||
| C.cpp:29:10:29:11 | s1 |
|
||||
| C.cpp:29:10:29:11 | this |
|
||||
| C.cpp:30:10:30:11 | s2 |
|
||||
| C.cpp:30:10:30:11 | this |
|
||||
| C.cpp:31:10:31:11 | s3 |
|
||||
| C.cpp:31:10:31:11 | this |
|
||||
| C.cpp:32:10:32:11 | s4 |
|
||||
| D.cpp:9:21:9:24 | this |
|
||||
| D.cpp:10:30:10:33 | this |
|
||||
| D.cpp:11:29:11:32 | this |
|
||||
| D.cpp:16:21:16:23 | this |
|
||||
| D.cpp:17:30:17:32 | this |
|
||||
| D.cpp:18:29:18:31 | this |
|
||||
| D.cpp:22:10:22:11 | b2 |
|
||||
| D.cpp:22:14:22:20 | call to getBox1 |
|
||||
| D.cpp:22:25:22:31 | call to getElem |
|
||||
| D.cpp:29:15:29:41 | new |
|
||||
| D.cpp:29:24:29:40 | new |
|
||||
| D.cpp:29:33:29:39 | 0 |
|
||||
| D.cpp:30:5:30:5 | b |
|
||||
| D.cpp:30:8:30:10 | box |
|
||||
| D.cpp:31:14:31:14 | b |
|
||||
| D.cpp:36:15:36:41 | new |
|
||||
| D.cpp:36:24:36:40 | new |
|
||||
| D.cpp:36:33:36:39 | 0 |
|
||||
| D.cpp:37:5:37:5 | b |
|
||||
| D.cpp:37:8:37:10 | box |
|
||||
| D.cpp:37:21:37:21 | e |
|
||||
| D.cpp:38:14:38:14 | b |
|
||||
| D.cpp:43:15:43:41 | new |
|
||||
| D.cpp:43:24:43:40 | new |
|
||||
| D.cpp:43:33:43:39 | 0 |
|
||||
| D.cpp:44:5:44:5 | b |
|
||||
| D.cpp:44:8:44:14 | call to getBox1 |
|
||||
| D.cpp:45:14:45:14 | b |
|
||||
| D.cpp:50:15:50:41 | new |
|
||||
| D.cpp:50:24:50:40 | new |
|
||||
| D.cpp:50:33:50:39 | 0 |
|
||||
| D.cpp:51:5:51:5 | b |
|
||||
| D.cpp:51:8:51:14 | call to getBox1 |
|
||||
| D.cpp:51:27:51:27 | e |
|
||||
| D.cpp:52:14:52:14 | b |
|
||||
| D.cpp:57:5:57:12 | this |
|
||||
| D.cpp:57:16:57:42 | new |
|
||||
| D.cpp:57:25:57:41 | new |
|
||||
| D.cpp:57:34:57:40 | 0 |
|
||||
| D.cpp:58:5:58:12 | boxfield |
|
||||
| D.cpp:58:5:58:12 | this |
|
||||
| D.cpp:58:15:58:17 | box |
|
||||
| D.cpp:59:5:59:7 | this |
|
||||
| D.cpp:64:10:64:17 | boxfield |
|
||||
| D.cpp:64:10:64:17 | this |
|
||||
| D.cpp:64:20:64:22 | box |
|
||||
| D.cpp:64:25:64:28 | elem |
|
||||
| E.cpp:21:10:21:10 | p |
|
||||
| E.cpp:21:13:21:16 | data |
|
||||
| E.cpp:21:18:21:23 | buffer |
|
||||
| E.cpp:28:21:28:23 | raw |
|
||||
| E.cpp:29:21:29:21 | b |
|
||||
| E.cpp:29:24:29:29 | buffer |
|
||||
| E.cpp:30:21:30:21 | p |
|
||||
| E.cpp:30:23:30:26 | data |
|
||||
| E.cpp:30:28:30:33 | buffer |
|
||||
| E.cpp:31:10:31:12 | raw |
|
||||
| E.cpp:32:10:32:10 | b |
|
||||
| E.cpp:32:13:32:18 | buffer |
|
||||
| E.cpp:33:18:33:19 | & ... |
|
||||
| aliasing.cpp:9:3:9:3 | s |
|
||||
| aliasing.cpp:13:3:13:3 | s |
|
||||
| aliasing.cpp:17:3:17:3 | s |
|
||||
| aliasing.cpp:25:17:25:19 | & ... |
|
||||
| aliasing.cpp:26:19:26:20 | s2 |
|
||||
| aliasing.cpp:29:8:29:9 | s1 |
|
||||
| aliasing.cpp:30:8:30:9 | s2 |
|
||||
| aliasing.cpp:31:8:31:9 | s3 |
|
||||
| aliasing.cpp:37:3:37:6 | ref1 |
|
||||
| aliasing.cpp:38:8:38:9 | s1 |
|
||||
| aliasing.cpp:42:3:42:4 | s2 |
|
||||
| aliasing.cpp:43:8:43:11 | ref2 |
|
||||
| aliasing.cpp:49:3:49:7 | copy1 |
|
||||
| aliasing.cpp:50:8:50:9 | s1 |
|
||||
| aliasing.cpp:54:3:54:4 | s2 |
|
||||
| aliasing.cpp:55:8:55:12 | copy2 |
|
||||
| aliasing.cpp:60:3:60:4 | s2 |
|
||||
| aliasing.cpp:62:8:62:12 | copy2 |
|
||||
| aliasing.cpp:71:9:71:9 | w |
|
||||
| aliasing.cpp:72:3:72:3 | s |
|
||||
| aliasing.cpp:73:8:73:8 | w |
|
||||
| aliasing.cpp:73:10:73:10 | s |
|
||||
| aliasing.cpp:78:11:78:11 | w |
|
||||
| aliasing.cpp:79:3:79:3 | s |
|
||||
| aliasing.cpp:80:8:80:8 | w |
|
||||
| aliasing.cpp:80:10:80:10 | s |
|
||||
| aliasing.cpp:85:10:85:10 | w |
|
||||
| aliasing.cpp:86:3:86:3 | s |
|
||||
| aliasing.cpp:87:8:87:8 | w |
|
||||
| aliasing.cpp:87:10:87:10 | s |
|
||||
| aliasing.cpp:92:3:92:3 | w |
|
||||
| aliasing.cpp:92:5:92:5 | s |
|
||||
| aliasing.cpp:93:8:93:8 | w |
|
||||
| aliasing.cpp:93:10:93:10 | s |
|
||||
| aliasing.cpp:98:3:98:3 | s |
|
||||
| aliasing.cpp:111:15:111:19 | & ... |
|
||||
| aliasing.cpp:101:14:101:19 | s_copy |
|
||||
| aliasing.cpp:111:16:111:16 | s |
|
||||
| aliasing.cpp:121:15:121:16 | xs |
|
||||
| aliasing.cpp:126:15:126:20 | ... - ... |
|
||||
| aliasing.cpp:131:15:131:16 | xs |
|
||||
| aliasing.cpp:136:15:136:17 | + ... |
|
||||
| aliasing.cpp:112:8:112:8 | s |
|
||||
| aliasing.cpp:141:15:141:15 | s |
|
||||
| aliasing.cpp:141:17:141:20 | data |
|
||||
| aliasing.cpp:147:15:147:22 | & ... |
|
||||
| aliasing.cpp:143:8:143:8 | s |
|
||||
| aliasing.cpp:147:16:147:19 | access to array |
|
||||
| aliasing.cpp:148:8:148:11 | access to array |
|
||||
| aliasing.cpp:158:15:158:15 | s |
|
||||
| aliasing.cpp:158:17:158:20 | data |
|
||||
| aliasing.cpp:159:9:159:9 | s |
|
||||
| aliasing.cpp:164:15:164:15 | s |
|
||||
| aliasing.cpp:164:17:164:20 | data |
|
||||
| aliasing.cpp:175:15:175:22 | & ... |
|
||||
| aliasing.cpp:165:8:165:8 | s |
|
||||
| aliasing.cpp:175:16:175:17 | s2 |
|
||||
| aliasing.cpp:175:19:175:19 | s |
|
||||
| aliasing.cpp:181:15:181:22 | & ... |
|
||||
| aliasing.cpp:176:8:176:9 | s2 |
|
||||
| aliasing.cpp:176:11:176:11 | s |
|
||||
| aliasing.cpp:181:16:181:17 | s2 |
|
||||
| aliasing.cpp:181:19:181:19 | s |
|
||||
| aliasing.cpp:187:15:187:22 | & ... |
|
||||
| aliasing.cpp:182:8:182:9 | s2 |
|
||||
| aliasing.cpp:182:11:182:11 | s |
|
||||
| aliasing.cpp:187:16:187:17 | s2 |
|
||||
| aliasing.cpp:187:19:187:19 | s |
|
||||
| aliasing.cpp:194:15:194:22 | & ... |
|
||||
| aliasing.cpp:189:8:189:11 | s2_2 |
|
||||
| aliasing.cpp:189:13:189:13 | s |
|
||||
| aliasing.cpp:194:16:194:17 | s2 |
|
||||
| aliasing.cpp:194:19:194:19 | s |
|
||||
| aliasing.cpp:200:15:200:24 | & ... |
|
||||
| aliasing.cpp:196:8:196:11 | s2_2 |
|
||||
| aliasing.cpp:196:13:196:13 | s |
|
||||
| aliasing.cpp:200:16:200:18 | ps2 |
|
||||
| aliasing.cpp:200:21:200:21 | s |
|
||||
| aliasing.cpp:205:15:205:24 | & ... |
|
||||
| aliasing.cpp:201:8:201:10 | ps2 |
|
||||
| aliasing.cpp:201:13:201:13 | s |
|
||||
| aliasing.cpp:205:16:205:18 | ps2 |
|
||||
| aliasing.cpp:205:21:205:21 | s |
|
||||
| arrays.cpp:7:8:7:13 | access to array |
|
||||
| arrays.cpp:8:8:8:13 | access to array |
|
||||
| arrays.cpp:9:8:9:11 | * ... |
|
||||
| arrays.cpp:10:8:10:15 | * ... |
|
||||
| arrays.cpp:16:8:16:13 | access to array |
|
||||
| arrays.cpp:17:8:17:13 | access to array |
|
||||
| aliasing.cpp:206:8:206:10 | ps2 |
|
||||
| aliasing.cpp:206:13:206:13 | s |
|
||||
| arrays.cpp:36:3:36:3 | o |
|
||||
| arrays.cpp:36:3:36:17 | access to array |
|
||||
| arrays.cpp:36:5:36:10 | nested |
|
||||
| arrays.cpp:37:8:37:8 | o |
|
||||
| arrays.cpp:37:8:37:22 | access to array |
|
||||
| arrays.cpp:37:10:37:15 | nested |
|
||||
| arrays.cpp:37:24:37:27 | data |
|
||||
| arrays.cpp:38:8:38:8 | o |
|
||||
| arrays.cpp:38:8:38:22 | access to array |
|
||||
| arrays.cpp:38:10:38:15 | nested |
|
||||
| arrays.cpp:38:24:38:27 | data |
|
||||
| arrays.cpp:42:3:42:3 | o |
|
||||
| arrays.cpp:42:3:42:20 | access to array |
|
||||
| arrays.cpp:42:5:42:12 | indirect |
|
||||
| arrays.cpp:43:8:43:8 | o |
|
||||
| arrays.cpp:43:8:43:25 | access to array |
|
||||
| arrays.cpp:43:10:43:17 | indirect |
|
||||
| arrays.cpp:43:27:43:30 | data |
|
||||
| arrays.cpp:44:8:44:8 | o |
|
||||
| arrays.cpp:44:8:44:25 | access to array |
|
||||
| arrays.cpp:44:10:44:17 | indirect |
|
||||
| arrays.cpp:44:27:44:30 | data |
|
||||
| arrays.cpp:48:3:48:3 | o |
|
||||
| arrays.cpp:48:3:48:20 | access to array |
|
||||
| arrays.cpp:48:5:48:12 | indirect |
|
||||
| arrays.cpp:49:8:49:8 | o |
|
||||
| arrays.cpp:49:8:49:25 | access to array |
|
||||
| arrays.cpp:49:10:49:17 | indirect |
|
||||
| arrays.cpp:49:27:49:30 | data |
|
||||
| arrays.cpp:50:8:50:8 | o |
|
||||
| arrays.cpp:50:8:50:25 | access to array |
|
||||
| arrays.cpp:50:10:50:17 | indirect |
|
||||
| arrays.cpp:50:27:50:30 | data |
|
||||
| by_reference.cpp:12:5:12:5 | s |
|
||||
| by_reference.cpp:16:5:16:8 | this |
|
||||
| by_reference.cpp:20:5:20:8 | this |
|
||||
| by_reference.cpp:20:23:20:27 | value |
|
||||
| by_reference.cpp:24:19:24:22 | this |
|
||||
| by_reference.cpp:24:25:24:29 | value |
|
||||
| by_reference.cpp:50:3:50:3 | s |
|
||||
| by_reference.cpp:50:17:50:26 | call to user_input |
|
||||
| by_reference.cpp:51:10:51:20 | call to getDirectly |
|
||||
| by_reference.cpp:56:3:56:3 | s |
|
||||
| by_reference.cpp:56:19:56:28 | call to user_input |
|
||||
| by_reference.cpp:57:10:57:22 | call to getIndirectly |
|
||||
| by_reference.cpp:62:3:62:3 | s |
|
||||
| by_reference.cpp:62:25:62:34 | call to user_input |
|
||||
| by_reference.cpp:63:10:63:28 | call to getThroughNonMember |
|
||||
| by_reference.cpp:68:17:68:18 | & ... |
|
||||
| by_reference.cpp:68:21:68:30 | call to user_input |
|
||||
| by_reference.cpp:69:8:69:20 | call to nonMemberGetA |
|
||||
| by_reference.cpp:32:12:32:12 | s |
|
||||
| by_reference.cpp:36:12:36:15 | this |
|
||||
| by_reference.cpp:84:3:84:7 | inner |
|
||||
| by_reference.cpp:88:3:88:7 | inner |
|
||||
| by_reference.cpp:102:21:102:39 | & ... |
|
||||
| by_reference.cpp:102:22:102:26 | outer |
|
||||
| by_reference.cpp:103:21:103:25 | outer |
|
||||
| by_reference.cpp:103:27:103:35 | inner_ptr |
|
||||
| by_reference.cpp:104:15:104:22 | & ... |
|
||||
| by_reference.cpp:104:16:104:20 | outer |
|
||||
| by_reference.cpp:106:21:106:41 | & ... |
|
||||
| by_reference.cpp:106:22:106:27 | pouter |
|
||||
| by_reference.cpp:107:21:107:26 | pouter |
|
||||
| by_reference.cpp:107:29:107:37 | inner_ptr |
|
||||
| by_reference.cpp:108:15:108:24 | & ... |
|
||||
| by_reference.cpp:108:16:108:21 | pouter |
|
||||
| by_reference.cpp:110:8:110:12 | outer |
|
||||
| by_reference.cpp:110:14:110:25 | inner_nested |
|
||||
| by_reference.cpp:110:27:110:27 | a |
|
||||
| by_reference.cpp:111:8:111:12 | outer |
|
||||
| by_reference.cpp:111:14:111:22 | inner_ptr |
|
||||
| by_reference.cpp:111:25:111:25 | a |
|
||||
| by_reference.cpp:112:8:112:12 | outer |
|
||||
| by_reference.cpp:112:14:112:14 | a |
|
||||
| by_reference.cpp:114:8:114:13 | pouter |
|
||||
| by_reference.cpp:114:16:114:27 | inner_nested |
|
||||
| by_reference.cpp:114:29:114:29 | a |
|
||||
| by_reference.cpp:115:8:115:13 | pouter |
|
||||
| by_reference.cpp:115:16:115:24 | inner_ptr |
|
||||
| by_reference.cpp:115:27:115:27 | a |
|
||||
| by_reference.cpp:116:8:116:13 | pouter |
|
||||
| by_reference.cpp:116:16:116:16 | a |
|
||||
| by_reference.cpp:122:21:122:25 | outer |
|
||||
| by_reference.cpp:122:27:122:38 | inner_nested |
|
||||
| by_reference.cpp:123:21:123:36 | * ... |
|
||||
| by_reference.cpp:123:22:123:26 | outer |
|
||||
| by_reference.cpp:124:15:124:19 | outer |
|
||||
| by_reference.cpp:124:21:124:21 | a |
|
||||
| by_reference.cpp:126:21:126:26 | pouter |
|
||||
| by_reference.cpp:126:29:126:40 | inner_nested |
|
||||
| by_reference.cpp:127:21:127:38 | * ... |
|
||||
| by_reference.cpp:127:22:127:27 | pouter |
|
||||
| by_reference.cpp:128:15:128:20 | pouter |
|
||||
| by_reference.cpp:128:23:128:23 | a |
|
||||
| by_reference.cpp:130:8:130:12 | outer |
|
||||
| by_reference.cpp:130:14:130:25 | inner_nested |
|
||||
| by_reference.cpp:130:27:130:27 | a |
|
||||
| by_reference.cpp:131:8:131:12 | outer |
|
||||
| by_reference.cpp:131:14:131:22 | inner_ptr |
|
||||
| by_reference.cpp:131:25:131:25 | a |
|
||||
| by_reference.cpp:132:8:132:12 | outer |
|
||||
| by_reference.cpp:132:14:132:14 | a |
|
||||
| by_reference.cpp:134:8:134:13 | pouter |
|
||||
| by_reference.cpp:134:16:134:27 | inner_nested |
|
||||
| by_reference.cpp:134:29:134:29 | a |
|
||||
| by_reference.cpp:135:8:135:13 | pouter |
|
||||
| by_reference.cpp:135:16:135:24 | inner_ptr |
|
||||
| by_reference.cpp:135:27:135:27 | a |
|
||||
| by_reference.cpp:136:8:136:13 | pouter |
|
||||
| by_reference.cpp:136:16:136:16 | a |
|
||||
| complex.cpp:9:20:9:21 | this |
|
||||
| complex.cpp:10:20:10:21 | this |
|
||||
| complex.cpp:11:22:11:23 | this |
|
||||
| complex.cpp:12:22:12:23 | this |
|
||||
| complex.cpp:42:8:42:8 | b |
|
||||
| complex.cpp:42:10:42:14 | inner |
|
||||
| complex.cpp:42:16:42:16 | f |
|
||||
| complex.cpp:43:8:43:8 | b |
|
||||
| complex.cpp:43:10:43:14 | inner |
|
||||
| complex.cpp:43:16:43:16 | f |
|
||||
| complex.cpp:53:3:53:4 | b1 |
|
||||
| complex.cpp:53:6:53:10 | inner |
|
||||
| complex.cpp:53:12:53:12 | f |
|
||||
| complex.cpp:54:3:54:4 | b2 |
|
||||
| complex.cpp:54:6:54:10 | inner |
|
||||
| complex.cpp:54:12:54:12 | f |
|
||||
| complex.cpp:55:3:55:4 | b3 |
|
||||
| complex.cpp:55:6:55:10 | inner |
|
||||
| complex.cpp:55:12:55:12 | f |
|
||||
| complex.cpp:56:3:56:4 | b3 |
|
||||
| complex.cpp:56:6:56:10 | inner |
|
||||
| complex.cpp:56:12:56:12 | f |
|
||||
| complex.cpp:59:7:59:8 | b1 |
|
||||
| complex.cpp:62:7:62:8 | b2 |
|
||||
| complex.cpp:65:7:65:8 | b3 |
|
||||
| complex.cpp:68:7:68:8 | b4 |
|
||||
| conflated.cpp:10:4:10:5 | ra |
|
||||
| conflated.cpp:19:19:19:21 | raw |
|
||||
| conflated.cpp:20:8:20:10 | raw |
|
||||
| conflated.cpp:11:9:11:10 | ra |
|
||||
| conflated.cpp:29:3:29:4 | pa |
|
||||
| conflated.cpp:30:8:30:9 | pa |
|
||||
| conflated.cpp:36:3:36:4 | pa |
|
||||
| conflated.cpp:37:8:37:9 | pa |
|
||||
| conflated.cpp:53:3:53:4 | ll |
|
||||
| conflated.cpp:54:3:54:4 | ll |
|
||||
| conflated.cpp:54:7:54:10 | next |
|
||||
| conflated.cpp:59:20:59:39 | new |
|
||||
| conflated.cpp:59:35:59:38 | next |
|
||||
| conflated.cpp:55:8:55:9 | ll |
|
||||
| conflated.cpp:55:12:55:15 | next |
|
||||
| conflated.cpp:60:3:60:4 | ll |
|
||||
| conflated.cpp:60:7:60:10 | next |
|
||||
| conflated.cpp:61:8:61:9 | ll |
|
||||
| conflated.cpp:61:12:61:15 | next |
|
||||
| constructors.cpp:18:22:18:23 | this |
|
||||
| constructors.cpp:19:22:19:23 | this |
|
||||
| constructors.cpp:20:24:20:25 | this |
|
||||
| constructors.cpp:21:24:21:25 | this |
|
||||
| constructors.cpp:28:10:28:10 | f |
|
||||
| constructors.cpp:29:10:29:10 | f |
|
||||
| constructors.cpp:40:9:40:9 | f |
|
||||
| constructors.cpp:43:9:43:9 | g |
|
||||
| constructors.cpp:46:9:46:9 | h |
|
||||
| constructors.cpp:49:9:49:9 | i |
|
||||
| qualifiers.cpp:9:30:9:33 | this |
|
||||
| qualifiers.cpp:12:49:12:53 | inner |
|
||||
| qualifiers.cpp:13:51:13:55 | inner |
|
||||
| qualifiers.cpp:22:5:22:9 | outer |
|
||||
| qualifiers.cpp:18:32:18:36 | this |
|
||||
| qualifiers.cpp:22:11:22:18 | call to getInner |
|
||||
| qualifiers.cpp:23:10:23:14 | outer |
|
||||
| qualifiers.cpp:23:16:23:20 | inner |
|
||||
| qualifiers.cpp:23:23:23:23 | a |
|
||||
| qualifiers.cpp:27:5:27:9 | outer |
|
||||
| qualifiers.cpp:27:11:27:18 | call to getInner |
|
||||
| qualifiers.cpp:27:28:27:37 | call to user_input |
|
||||
| qualifiers.cpp:28:10:28:14 | outer |
|
||||
| qualifiers.cpp:28:16:28:20 | inner |
|
||||
| qualifiers.cpp:28:23:28:23 | a |
|
||||
| qualifiers.cpp:32:17:32:21 | outer |
|
||||
| qualifiers.cpp:32:23:32:30 | call to getInner |
|
||||
| qualifiers.cpp:32:35:32:44 | call to user_input |
|
||||
| qualifiers.cpp:33:10:33:14 | outer |
|
||||
| qualifiers.cpp:33:16:33:20 | inner |
|
||||
| qualifiers.cpp:33:23:33:23 | a |
|
||||
| qualifiers.cpp:37:19:37:35 | * ... |
|
||||
| qualifiers.cpp:37:20:37:24 | outer |
|
||||
| qualifiers.cpp:37:38:37:47 | call to user_input |
|
||||
| qualifiers.cpp:38:10:38:14 | outer |
|
||||
| qualifiers.cpp:38:16:38:20 | inner |
|
||||
| qualifiers.cpp:38:23:38:23 | a |
|
||||
| qualifiers.cpp:42:6:42:22 | * ... |
|
||||
| qualifiers.cpp:42:7:42:11 | outer |
|
||||
| qualifiers.cpp:43:10:43:14 | outer |
|
||||
| qualifiers.cpp:43:16:43:20 | inner |
|
||||
| qualifiers.cpp:43:23:43:23 | a |
|
||||
| qualifiers.cpp:47:6:47:11 | & ... |
|
||||
| qualifiers.cpp:47:15:47:22 | call to getInner |
|
||||
| qualifiers.cpp:48:10:48:14 | outer |
|
||||
| qualifiers.cpp:48:16:48:20 | inner |
|
||||
| qualifiers.cpp:48:23:48:23 | a |
|
||||
| realistic.cpp:42:20:42:20 | o |
|
||||
| realistic.cpp:49:9:49:11 | foo |
|
||||
| realistic.cpp:49:9:49:18 | access to array |
|
||||
| realistic.cpp:53:9:53:11 | foo |
|
||||
@@ -452,58 +265,53 @@
|
||||
| realistic.cpp:54:16:54:25 | access to array |
|
||||
| realistic.cpp:54:27:54:29 | baz |
|
||||
| realistic.cpp:54:32:54:40 | userInput |
|
||||
| realistic.cpp:54:42:54:47 | buffer |
|
||||
| realistic.cpp:60:16:60:18 | dst |
|
||||
| realistic.cpp:55:12:55:14 | foo |
|
||||
| realistic.cpp:55:12:55:21 | access to array |
|
||||
| realistic.cpp:55:23:55:25 | baz |
|
||||
| realistic.cpp:55:28:55:36 | userInput |
|
||||
| realistic.cpp:57:88:57:90 | foo |
|
||||
| realistic.cpp:57:88:57:97 | access to array |
|
||||
| realistic.cpp:57:99:57:101 | baz |
|
||||
| realistic.cpp:57:104:57:112 | userInput |
|
||||
| realistic.cpp:60:21:60:23 | foo |
|
||||
| realistic.cpp:60:21:60:30 | access to array |
|
||||
| realistic.cpp:60:32:60:34 | baz |
|
||||
| realistic.cpp:60:37:60:45 | userInput |
|
||||
| realistic.cpp:60:55:60:57 | foo |
|
||||
| realistic.cpp:60:55:60:64 | access to array |
|
||||
| realistic.cpp:60:66:60:68 | baz |
|
||||
| realistic.cpp:60:71:60:79 | userInput |
|
||||
| realistic.cpp:61:21:61:23 | foo |
|
||||
| realistic.cpp:61:21:61:30 | access to array |
|
||||
| realistic.cpp:61:32:61:34 | baz |
|
||||
| realistic.cpp:61:37:61:45 | userInput |
|
||||
| realistic.cpp:61:47:61:55 | bufferLen |
|
||||
| realistic.cpp:65:21:65:23 | foo |
|
||||
| realistic.cpp:65:21:65:30 | access to array |
|
||||
| realistic.cpp:65:32:65:34 | baz |
|
||||
| realistic.cpp:65:37:65:45 | userInput |
|
||||
| realistic.cpp:65:47:65:52 | buffer |
|
||||
| realistic.cpp:66:21:66:23 | dst |
|
||||
| simple.cpp:18:22:18:23 | this |
|
||||
| simple.cpp:19:22:19:23 | this |
|
||||
| simple.cpp:20:24:20:25 | this |
|
||||
| simple.cpp:21:24:21:25 | this |
|
||||
| simple.cpp:28:10:28:10 | f |
|
||||
| simple.cpp:29:10:29:10 | f |
|
||||
| simple.cpp:39:5:39:5 | f |
|
||||
| simple.cpp:40:5:40:5 | g |
|
||||
| simple.cpp:41:5:41:5 | h |
|
||||
| simple.cpp:42:5:42:5 | h |
|
||||
| simple.cpp:45:9:45:9 | f |
|
||||
| simple.cpp:48:9:48:9 | g |
|
||||
| simple.cpp:51:9:51:9 | h |
|
||||
| simple.cpp:54:9:54:9 | i |
|
||||
| simple.cpp:65:5:65:5 | a |
|
||||
| simple.cpp:67:10:67:11 | a2 |
|
||||
| simple.cpp:79:16:79:17 | f2 |
|
||||
| simple.cpp:79:16:79:17 | this |
|
||||
| simple.cpp:83:9:83:10 | f2 |
|
||||
| simple.cpp:83:9:83:10 | this |
|
||||
| simple.cpp:84:14:84:20 | this |
|
||||
| simple.cpp:92:5:92:5 | a |
|
||||
| simple.cpp:94:10:94:11 | a2 |
|
||||
| struct_init.c:15:8:15:9 | ab |
|
||||
| struct_init.c:15:12:15:12 | a |
|
||||
| struct_init.c:16:8:16:9 | ab |
|
||||
| struct_init.c:16:12:16:12 | b |
|
||||
| struct_init.c:22:8:22:9 | ab |
|
||||
| struct_init.c:22:11:22:11 | a |
|
||||
| struct_init.c:23:8:23:9 | ab |
|
||||
| struct_init.c:23:11:23:11 | b |
|
||||
| struct_init.c:24:10:24:12 | & ... |
|
||||
| struct_init.c:31:8:31:12 | outer |
|
||||
| struct_init.c:31:14:31:21 | nestedAB |
|
||||
| struct_init.c:31:23:31:23 | a |
|
||||
| struct_init.c:32:8:32:12 | outer |
|
||||
| struct_init.c:32:14:32:21 | nestedAB |
|
||||
| struct_init.c:32:23:32:23 | b |
|
||||
| struct_init.c:33:8:33:12 | outer |
|
||||
| struct_init.c:33:14:33:22 | pointerAB |
|
||||
| struct_init.c:33:25:33:25 | a |
|
||||
| struct_init.c:34:8:34:12 | outer |
|
||||
| struct_init.c:34:14:34:22 | pointerAB |
|
||||
| struct_init.c:34:25:34:25 | b |
|
||||
| struct_init.c:36:10:36:24 | & ... |
|
||||
| struct_init.c:36:11:36:15 | outer |
|
||||
| struct_init.c:46:10:46:14 | outer |
|
||||
| struct_init.c:46:16:46:24 | pointerAB |
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
|
||||
import cpp
|
||||
import semmle.code.cpp.dataflow.DataFlow::DataFlow
|
||||
import semmle.code.cpp.dataflow.old.DataFlow::DataFlow
|
||||
|
||||
select any(Node n).asPartialDefinition()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @kind path-problem
|
||||
*/
|
||||
|
||||
import semmle.code.cpp.dataflow.DataFlow
|
||||
import semmle.code.cpp.dataflow.old.DataFlow2
|
||||
import ASTConfiguration
|
||||
import DataFlow::PathGraph
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import semmle.code.cpp.dataflow.internal.FlowVar
|
||||
import semmle.code.cpp.dataflow.old.internal.FlowVar
|
||||
|
||||
from PartialDefinition def
|
||||
select def.getActualLocation().toString(), "partial def of " + def.toString(), def,
|
||||
|
||||
@@ -23,8 +23,12 @@
|
||||
| test.cpp:68:28:68:33 | call to getenv | test.cpp:69:10:69:13 | copy | AST only |
|
||||
| test.cpp:68:28:68:33 | call to getenv | test.cpp:70:5:70:10 | call to strcpy | AST only |
|
||||
| test.cpp:68:28:68:33 | call to getenv | test.cpp:70:12:70:15 | copy | AST only |
|
||||
| test.cpp:68:28:68:33 | call to getenv | test.cpp:71:12:71:15 | copy | AST only |
|
||||
| test.cpp:68:28:68:33 | call to getenv | test.cpp:71:12:71:15 | array to pointer conversion | IR only |
|
||||
| test.cpp:75:20:75:25 | call to getenv | test.cpp:15:22:15:25 | nptr | AST only |
|
||||
| test.cpp:75:20:75:25 | call to getenv | test.cpp:76:9:76:11 | len | IR only |
|
||||
| test.cpp:75:20:75:25 | call to getenv | test.cpp:77:36:77:38 | (unsigned long)... | IR only |
|
||||
| test.cpp:75:20:75:25 | call to getenv | test.cpp:77:36:77:38 | len | IR only |
|
||||
| test.cpp:75:20:75:25 | call to getenv | test.cpp:77:36:77:55 | ... * ... | IR only |
|
||||
| test.cpp:83:28:83:33 | call to getenv | test.cpp:8:24:8:25 | s1 | AST only |
|
||||
| test.cpp:83:28:83:33 | call to getenv | test.cpp:11:20:11:21 | s1 | AST only |
|
||||
| test.cpp:83:28:83:33 | call to getenv | test.cpp:11:36:11:37 | s2 | AST only |
|
||||
|
||||
@@ -20,9 +20,15 @@
|
||||
| test.cpp:68:28:68:33 | call to getenv | test.cpp:68:28:68:33 | call to getenv |
|
||||
| test.cpp:68:28:68:33 | call to getenv | test.cpp:68:28:68:46 | (const char *)... |
|
||||
| test.cpp:68:28:68:33 | call to getenv | test.cpp:70:18:70:25 | userName |
|
||||
| test.cpp:68:28:68:33 | call to getenv | test.cpp:71:12:71:15 | array to pointer conversion |
|
||||
| test.cpp:68:28:68:33 | call to getenv | test.cpp:71:12:71:15 | copy |
|
||||
| test.cpp:75:20:75:25 | call to getenv | test.cpp:75:15:75:18 | call to atoi |
|
||||
| test.cpp:75:20:75:25 | call to getenv | test.cpp:75:20:75:25 | call to getenv |
|
||||
| test.cpp:75:20:75:25 | call to getenv | test.cpp:75:20:75:45 | (const char *)... |
|
||||
| test.cpp:75:20:75:25 | call to getenv | test.cpp:76:9:76:11 | len |
|
||||
| test.cpp:75:20:75:25 | call to getenv | test.cpp:77:36:77:38 | (unsigned long)... |
|
||||
| test.cpp:75:20:75:25 | call to getenv | test.cpp:77:36:77:38 | len |
|
||||
| test.cpp:75:20:75:25 | call to getenv | test.cpp:77:36:77:55 | ... * ... |
|
||||
| test.cpp:83:28:83:33 | call to getenv | test.cpp:83:28:83:33 | call to getenv |
|
||||
| test.cpp:83:28:83:33 | call to getenv | test.cpp:83:28:83:46 | (const char *)... |
|
||||
| test.cpp:83:28:83:33 | call to getenv | test.cpp:86:15:86:22 | userName |
|
||||
|
||||
@@ -1,24 +1,5 @@
|
||||
import TestUtilities.dataflow.FlowTestCommon
|
||||
|
||||
module AstTest {
|
||||
private import semmle.code.cpp.dataflow.TaintTracking
|
||||
|
||||
class AstSmartPointerTaintConfig extends TaintTracking::Configuration {
|
||||
AstSmartPointerTaintConfig() { this = "ASTSmartPointerTaintConfig" }
|
||||
|
||||
override predicate isSource(DataFlow::Node source) {
|
||||
source.asExpr().(FunctionCall).getTarget().getName() = "source"
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
exists(FunctionCall call |
|
||||
call.getTarget().getName() = "sink" and
|
||||
sink.asExpr() = call.getAnArgument()
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module IRTest {
|
||||
private import semmle.code.cpp.ir.dataflow.TaintTracking
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ void test_unique_ptr_int() {
|
||||
std::unique_ptr<int> p1(new int(source()));
|
||||
std::unique_ptr<int> p2 = std::make_unique<int>(source());
|
||||
|
||||
sink(*p1); // $ MISSING: ast,ir
|
||||
sink(*p2); // $ ast ir=8:50
|
||||
sink(*p1); // $ ir
|
||||
sink(*p2); // $ ir=8:50
|
||||
}
|
||||
|
||||
struct A {
|
||||
@@ -21,9 +21,9 @@ void test_unique_ptr_struct() {
|
||||
std::unique_ptr<A> p1(new A{source(), 0});
|
||||
std::unique_ptr<A> p2 = std::make_unique<A>(source(), 0);
|
||||
|
||||
sink(p1->x); // $ MISSING: ast,ir
|
||||
sink(p1->x); // $ ir
|
||||
sink(p1->y);
|
||||
sink(p2->x); // $ MISSING: ast,ir=22:46
|
||||
sink(p2->x); // $ ir=22:46
|
||||
sink(p2->y);
|
||||
}
|
||||
|
||||
@@ -31,16 +31,16 @@ void test_shared_ptr_int() {
|
||||
std::shared_ptr<int> p1(new int(source()));
|
||||
std::shared_ptr<int> p2 = std::make_shared<int>(source());
|
||||
|
||||
sink(*p1); // $ ast MISSING: ir
|
||||
sink(*p2); // $ ast ir=32:50
|
||||
sink(*p1); // $ ir
|
||||
sink(*p2); // $ ir=32:50
|
||||
}
|
||||
|
||||
void test_shared_ptr_struct() {
|
||||
std::shared_ptr<A> p1(new A{source(), 0});
|
||||
std::shared_ptr<A> p2 = std::make_shared<A>(source(), 0);
|
||||
|
||||
sink(p1->x); // $ MISSING: ast,ir
|
||||
sink(p1->x); // $ MISSING: ir
|
||||
sink(p1->y);
|
||||
sink(p2->x); // $ MISSING: ast,ir
|
||||
sink(p2->x); // $ MISSING: ir
|
||||
sink(p2->y);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import cpp
|
||||
import semmle.code.cpp.dataflow.StackAddress
|
||||
import semmle.code.cpp.dataflow.old.StackAddress
|
||||
|
||||
from FunctionCall call, Expr use, Type useType, Expr source, boolean isLocal
|
||||
where
|
||||
|
||||
@@ -13,10 +13,10 @@ void test_pointer_deref_assignment()
|
||||
|
||||
*p_x = source();
|
||||
|
||||
sink(x); // $ MISSING: ast,ir
|
||||
sink(*p_x); // $ ast,ir
|
||||
sink(*p2_x); // $ MISSING: ast,ir
|
||||
sink(r_x); // $ MISSING: ast,ir
|
||||
sink(x); // $ MISSING: ir
|
||||
sink(*p_x); // $ ir
|
||||
sink(*p2_x); // $ MISSING: ir
|
||||
sink(r_x); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_reference_deref_assignment()
|
||||
@@ -28,10 +28,10 @@ void test_reference_deref_assignment()
|
||||
|
||||
r_x = source();
|
||||
|
||||
sink(x); // $ MISSING: ast,ir
|
||||
sink(*p_x); // $ MISSING: ast,ir
|
||||
sink(r_x); // $ ast,ir
|
||||
sink(r2_x); // $ MISSING: ast,ir
|
||||
sink(x); // $ MISSING: ir
|
||||
sink(*p_x); // $ MISSING: ir
|
||||
sink(r_x); // $ ir
|
||||
sink(r2_x); // $ MISSING: ir
|
||||
}
|
||||
|
||||
class MyInt
|
||||
@@ -53,8 +53,8 @@ void test_myint_member_assignment()
|
||||
|
||||
mi.i = source();
|
||||
|
||||
sink(mi); // $ MISSING: ast,ir
|
||||
sink(mi.get()); // $ ast MISSING: ir
|
||||
sink(mi); // $ MISSING: ir
|
||||
sink(mi.get()); // $ ir
|
||||
}
|
||||
|
||||
void test_myint_method_assignment()
|
||||
@@ -63,8 +63,8 @@ void test_myint_method_assignment()
|
||||
|
||||
mi.get() = source();
|
||||
|
||||
sink(mi); // $ ir MISSING: ast
|
||||
sink(mi.get()); // $ ast MISSING: ir
|
||||
sink(mi); // $ MISSING: ir
|
||||
sink(mi.get()); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_myint_overloaded_assignment()
|
||||
@@ -74,10 +74,10 @@ void test_myint_overloaded_assignment()
|
||||
mi = source();
|
||||
mi2 = mi;
|
||||
|
||||
sink(mi); // $ MISSING: ast,ir
|
||||
sink(mi.get()); // $ MISSING: ast,ir
|
||||
sink(mi2); // $ MISSING: ast,ir
|
||||
sink(mi2.get()); // $ MISSING: ast,ir
|
||||
sink(mi); // $ MISSING: ir
|
||||
sink(mi.get()); // $ MISSING: ir
|
||||
sink(mi2); // $ MISSING: ir
|
||||
sink(mi2.get()); // $ MISSING: ir
|
||||
}
|
||||
|
||||
class MyArray
|
||||
@@ -98,7 +98,7 @@ void test_myarray_member_assignment()
|
||||
|
||||
ma.values[0] = source();
|
||||
|
||||
sink(ma.values[0]); // $ ast,ir
|
||||
sink(ma.values[0]); // $ ir
|
||||
}
|
||||
|
||||
void test_myarray_method_assignment()
|
||||
@@ -107,7 +107,7 @@ void test_myarray_method_assignment()
|
||||
|
||||
ma.get(0) = source();
|
||||
|
||||
sink(ma.get(0)); // $ MISSING: ast,ir
|
||||
sink(ma.get(0)); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_myarray_overloaded_assignment()
|
||||
@@ -117,8 +117,8 @@ void test_myarray_overloaded_assignment()
|
||||
ma[0] = source();
|
||||
ma2 = ma;
|
||||
|
||||
sink(ma[0]); // $ MISSING: ast,ir
|
||||
sink(ma2[0]); // $ MISSING: ast,ir
|
||||
sink(ma[0]); // $ MISSING: ir
|
||||
sink(ma2[0]); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void sink(int *);
|
||||
@@ -132,16 +132,16 @@ void test_array_reference_assignment()
|
||||
int *ptr2, *ptr3;
|
||||
|
||||
ref1 = source();
|
||||
sink(ref1); // $ ast,ir
|
||||
sink(arr1[5]); // $ MISSING: ast,ir
|
||||
sink(ref1); // $ ir
|
||||
sink(arr1[5]); // $ MISSING: ir
|
||||
|
||||
ptr2 = &(arr2[5]);
|
||||
*ptr2 = source();
|
||||
sink(*ptr2); // $ ast,ir
|
||||
sink(arr2[5]); // $ MISSING: ast,ir
|
||||
sink(*ptr2); // $ ir
|
||||
sink(arr2[5]); // $ MISSING: ir
|
||||
|
||||
ptr3 = arr3;
|
||||
ptr3[5] = source();
|
||||
sink(ptr3[5]); // $ ast,ir
|
||||
sink(arr3[5]); // $ MISSING: ast,ir
|
||||
sink(ptr3[5]); // $ ir
|
||||
sink(arr3[5]); // $ MISSING: ir
|
||||
}
|
||||
|
||||
@@ -19,6 +19,6 @@ void test_accept() {
|
||||
int size = sizeof(sockaddr);
|
||||
int a = accept(s, &addr, &size);
|
||||
|
||||
sink(a); // $ ast=17:11 ir SPURIOUS: ast=18:12
|
||||
sink(addr); // $ ast,ir
|
||||
sink(a); // $ ir
|
||||
sink(addr); // $ MISSING: ir
|
||||
}
|
||||
|
||||
@@ -34,14 +34,14 @@ void test_inits()
|
||||
MyDerivedValue v11(true, source());
|
||||
|
||||
sink(v1.x);
|
||||
sink(v2.x); // $ ast,ir
|
||||
sink(v2.x); // $ ir
|
||||
sink(v3.x);
|
||||
sink(v4.x); // $ ir MISSING: ast
|
||||
sink(v4.x); // $ ir
|
||||
sink(v5.x);
|
||||
sink(v6.x); // $ ir MISSING: ast
|
||||
sink(v7.x); // $ ir MISSING: ast
|
||||
sink(v6.x); // $ ir
|
||||
sink(v7.x); // $ ir
|
||||
sink(v8.x);
|
||||
sink(v9.x);
|
||||
sink(v10.x);
|
||||
sink(v11.x); // $ ir MISSING: ast
|
||||
sink(v11.x); // $ ir
|
||||
}
|
||||
|
||||
@@ -37,10 +37,10 @@ void test_copyableclass()
|
||||
MyCopyableClass s4;
|
||||
s4 = source();
|
||||
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s3); // $ ast,ir
|
||||
sink(s4); // $ ast,ir
|
||||
sink(s1); // $ ir
|
||||
sink(s2); // $ ir
|
||||
sink(s3); // $ ir
|
||||
sink(s4); // $ ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -62,8 +62,8 @@ void test_copyableclass()
|
||||
MyCopyableClass s3;
|
||||
s2 = MyCopyableClass(source());
|
||||
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s3 = source()); // $ ast,ir
|
||||
sink(s1); // $ ir
|
||||
sink(s2); // $ ir
|
||||
sink(s3 = source()); // $ ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,10 +37,10 @@ void test_copyableclass_declonly()
|
||||
MyCopyableClassDeclOnly s4;
|
||||
s4 = source();
|
||||
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s3); // $ ast,ir
|
||||
sink(s4); // $ ast,ir
|
||||
sink(s1); // $ ir
|
||||
sink(s2); // $ ir
|
||||
sink(s3); // $ ir
|
||||
sink(s4); // $ ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -62,8 +62,8 @@ void test_copyableclass_declonly()
|
||||
MyCopyableClassDeclOnly s3;
|
||||
s2 = MyCopyableClassDeclOnly(source());
|
||||
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s3 = source()); // $ ast,ir
|
||||
sink(s1); // $ ir
|
||||
sink(s2); // $ ir
|
||||
sink(s3 = source()); // $ ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,22 +54,22 @@ void test1()
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(snprintf(buffer, 256, "%s", string::source()));
|
||||
sink(buffer); // $ ast,ir
|
||||
sink(buffer); // $ MISSING: ir
|
||||
}
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(snprintf(buffer, 256, string::source(), "Hello."));
|
||||
sink(buffer); // $ ast,ir
|
||||
sink(buffer); // $ MISSING: ir
|
||||
}
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(snprintf(buffer, 256, "%s %s %s", "a", "b", string::source()));
|
||||
sink(buffer); // $ ast,ir
|
||||
sink(buffer); // $ MISSING: ir
|
||||
}
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(snprintf(buffer, 256, "%.*s", 10, string::source()));
|
||||
sink(buffer); // $ ast,ir
|
||||
sink(buffer); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -80,39 +80,39 @@ void test1()
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(snprintf(buffer, 256, "%i", source()));
|
||||
sink(buffer); // $ ast,ir
|
||||
sink(buffer); // $ MISSING: ir
|
||||
}
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(snprintf(buffer, 256, "%.*s", source(), "Hello."));
|
||||
sink(buffer); // $ ast,ir
|
||||
sink(buffer); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(snprintf(buffer, 256, "%p", string::source()));
|
||||
sink(buffer); // $ ast,ir // tainted (debatable)
|
||||
sink(buffer); // $ MISSING: ir // tainted (debatable)
|
||||
}
|
||||
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(sprintf(buffer, "%s", string::source()));
|
||||
sink(buffer); // $ ast,ir
|
||||
sink(buffer); // $ MISSING: ir
|
||||
}
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(sprintf(buffer, "%ls", wstring::source()));
|
||||
sink(buffer); // $ ast,ir
|
||||
sink(buffer); // $ MISSING: ir
|
||||
}
|
||||
{
|
||||
wchar_t wbuffer[256] = {0};
|
||||
sink(swprintf(wbuffer, 256, L"%s", wstring::source()));
|
||||
sink(wbuffer); // $ ast,ir
|
||||
sink(wbuffer); // $ MISSING: ir
|
||||
}
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(mysprintf(buffer, 256, "%s", string::source()));
|
||||
sink(buffer); // $ ast,ir
|
||||
sink(buffer); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -123,7 +123,7 @@ void test1()
|
||||
{
|
||||
int i = 0;
|
||||
sink(sscanf(string::source(), "%i", &i));
|
||||
sink(i); // $ ast,ir
|
||||
sink(i); // $ ir
|
||||
}
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
@@ -133,7 +133,7 @@ void test1()
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(sscanf(string::source(), "%s", &buffer));
|
||||
sink(buffer); // $ ast,ir
|
||||
sink(buffer); // $ MISSING: ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,6 +154,6 @@ void test2()
|
||||
i = strlen(s) + 1;
|
||||
sink(i);
|
||||
|
||||
sink(s[strlen(s) - 1]); // $ ast,ir
|
||||
sink(ws + (wcslen(ws) / 2)); // $ ast,ir
|
||||
sink(s[strlen(s) - 1]); // $ ir
|
||||
sink(ws + (wcslen(ws) / 2)); // $ ir
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
import cpp
|
||||
import semmle.code.cpp.dataflow.TaintTracking
|
||||
import semmle.code.cpp.dataflow.old.TaintTracking
|
||||
|
||||
from DataFlow::Node nodeFrom, DataFlow::Node nodeTo, string msg
|
||||
where
|
||||
|
||||
@@ -26,14 +26,14 @@ void test_pair()
|
||||
sink(a);
|
||||
|
||||
b.first = source();
|
||||
sink(b.first); // $ ast,ir
|
||||
sink(b.first); // $ ir
|
||||
sink(b.second);
|
||||
sink(b); // $ ir MISSING: ast
|
||||
sink(b); // $ MISSING: ir
|
||||
|
||||
c.second = source();
|
||||
sink(c.first);
|
||||
sink(c.second); // $ ast,ir
|
||||
sink(c); // $ ir MISSING: ast
|
||||
sink(c.second); // $ ir
|
||||
sink(c); // $ MISSING: ir
|
||||
|
||||
std::pair<char *, char *> d("123", "456");
|
||||
sink(d.first);
|
||||
@@ -41,25 +41,25 @@ void test_pair()
|
||||
sink(d);
|
||||
|
||||
std::pair<char *, char *> e(source(), "456");
|
||||
sink(e.first); // $ ast,ir
|
||||
sink(e.first); // $ ir
|
||||
sink(e.second);
|
||||
sink(e); // $ ir MISSING: ast
|
||||
sink(e); // $ MISSING: ir
|
||||
|
||||
std::pair<char *, char *> f("123", source());
|
||||
sink(f.first);
|
||||
sink(f.second); // $ ast,ir
|
||||
sink(f); // $ ast,ir
|
||||
sink(f.second); // $ ir
|
||||
sink(f); // $ ir
|
||||
|
||||
std::pair<char *, char *> g(f);
|
||||
sink(g.first);
|
||||
sink(g.second); // $ ast,ir
|
||||
sink(g); // $ ast,ir
|
||||
sink(g.second); // $ ir
|
||||
sink(g); // $ ir
|
||||
|
||||
std::pair<char *, char *> h;
|
||||
h = f;
|
||||
sink(h.first);
|
||||
sink(h.second); // $ ast,ir
|
||||
sink(h); // $ ast,ir
|
||||
sink(h.second); // $ ir
|
||||
sink(h); // $ ir
|
||||
|
||||
std::pair<char *, char *> i("123", "456");
|
||||
std::pair<char *, char *> j("123", source());
|
||||
@@ -68,34 +68,34 @@ void test_pair()
|
||||
i.swap(j);
|
||||
k.swap(l);
|
||||
sink(i.first);
|
||||
sink(i.second); // $ MISSING: ast,ir
|
||||
sink(i); // $ ast,ir
|
||||
sink(i.second); // $ MISSING: ir
|
||||
sink(i); // $ ir
|
||||
sink(j.first);
|
||||
sink(j.second); // $ SPURIOUS: ast,ir
|
||||
sink(j); // $ SPURIOUS: ast,ir
|
||||
sink(j.second); // $ SPURIOUS: ir
|
||||
sink(j); // $ SPURIOUS: ir
|
||||
sink(k.first);
|
||||
sink(k.second); // $ SPURIOUS: ast,ir
|
||||
sink(k); // $ SPURIOUS: ast,ir
|
||||
sink(k.second); // $ SPURIOUS: ir
|
||||
sink(k); // $ SPURIOUS: ir
|
||||
sink(l.first);
|
||||
sink(l.second); // $ MISSING: ast,ir
|
||||
sink(l); // $ ast,ir
|
||||
sink(l.second); // $ MISSING: ir
|
||||
sink(l); // $ ir
|
||||
|
||||
sink(make_pair("123", "456"));
|
||||
sink(make_pair("123", "456").first);
|
||||
sink(make_pair("123", "456").second);
|
||||
sink(make_pair(source(), "456")); // $ MISSING: ast,ir
|
||||
sink(make_pair(source(), "456").first); // $ ast,ir
|
||||
sink(make_pair(source(), "456")); // $ MISSING: ir
|
||||
sink(make_pair(source(), "456").first); // $ ir
|
||||
sink(make_pair(source(), "456").second);
|
||||
sink(make_pair("123", source())); // $ ast,ir
|
||||
sink(make_pair("123", source())); // $ ir
|
||||
sink(make_pair("123", source()).first);
|
||||
sink(make_pair("123", source()).second); // $ ast,ir
|
||||
sink(make_pair("123", source()).second); // $ ir
|
||||
|
||||
std::pair<std::pair<char *, char *>, char *> m;
|
||||
m = make_pair(make_pair("123", source()), "789");
|
||||
sink(m); // $ MISSING: ast,ir
|
||||
sink(m.first); // $ MISSING: ast,ir
|
||||
sink(m); // $ MISSING: ir
|
||||
sink(m.first); // $ MISSING: ir
|
||||
sink(m.first.first);
|
||||
sink(m.first.second); // $ MISSING: ast,ir
|
||||
sink(m.first.second); // $ MISSING: ir
|
||||
sink(m.second);
|
||||
}
|
||||
|
||||
@@ -106,40 +106,40 @@ void test_map()
|
||||
|
||||
sink(m1.insert(std::make_pair("abc", "def")).first);
|
||||
sink(m2.insert(std::make_pair("abc", source())).first);
|
||||
sink(m3.insert(std::make_pair(source(), "def")).first); // $ MISSING: ast,ir
|
||||
sink(m4.insert(m4.begin(), std::pair<char *, char *>("abc", source()))); // $ ast,ir
|
||||
sink(m3.insert(std::make_pair(source(), "def")).first); // $ MISSING: ir
|
||||
sink(m4.insert(m4.begin(), std::pair<char *, char *>("abc", source()))); // $ ir
|
||||
sink(m5.insert_or_assign("abc", source()).first);
|
||||
sink(m6.insert_or_assign(m6.begin(), "abc", source())); // $ ast,ir
|
||||
sink(m6.insert_or_assign(m6.begin(), "abc", source())); // $ ir
|
||||
sink(m1);
|
||||
sink(m2); // $ ast,ir
|
||||
sink(m3); // $ MISSING: ast,ir
|
||||
sink(m4); // $ ast,ir
|
||||
sink(m5); // $ ast,ir
|
||||
sink(m6); // $ ast,ir
|
||||
sink(m2); // $ ir
|
||||
sink(m3); // $ MISSING: ir
|
||||
sink(m4); // $ ir
|
||||
sink(m5); // $ ir
|
||||
sink(m6); // $ ir
|
||||
sink(m1.find("abc"));
|
||||
sink(m2.find("abc")); // $ ast,ir
|
||||
sink(m2.find("abc")); // $ ir
|
||||
sink(m3.find("abc"));
|
||||
sink(m4.find("abc")); // $ ast,ir
|
||||
sink(m5.find("abc")); // $ ast,ir
|
||||
sink(m6.find("abc")); // $ ast,ir
|
||||
sink(m4.find("abc")); // $ ir
|
||||
sink(m5.find("abc")); // $ ir
|
||||
sink(m6.find("abc")); // $ ir
|
||||
sink(m1.find("def"));
|
||||
sink(m2.find("def")); // $ SPURIOUS: ast,ir
|
||||
sink(m2.find("def")); // $ SPURIOUS: ir
|
||||
sink(m3.find("def"));
|
||||
sink(m4.find("def")); // $ SPURIOUS: ast,ir
|
||||
sink(m5.find("def")); // $ SPURIOUS: ast,ir
|
||||
sink(m6.find("def")); // $ SPURIOUS: ast,ir
|
||||
sink(m4.find("def")); // $ SPURIOUS: ir
|
||||
sink(m5.find("def")); // $ SPURIOUS: ir
|
||||
sink(m6.find("def")); // $ SPURIOUS: ir
|
||||
|
||||
// copy constructors and assignment
|
||||
std::map<char *, char *> m7(m2);
|
||||
std::map<char *, char *> m8 = m2;
|
||||
std::map<char *, char *> m9;
|
||||
m9 = m2;
|
||||
sink(m7); // $ ast,ir
|
||||
sink(m8); // $ ast,ir
|
||||
sink(m9); // $ ast,ir
|
||||
sink(m7.find("abc")); // $ ast,ir
|
||||
sink(m8.find("abc")); // $ ast,ir
|
||||
sink(m9.find("abc")); // $ ast,ir
|
||||
sink(m7); // $ ir
|
||||
sink(m8); // $ ir
|
||||
sink(m9); // $ ir
|
||||
sink(m7.find("abc")); // $ ir
|
||||
sink(m8.find("abc")); // $ ir
|
||||
sink(m9.find("abc")); // $ ir
|
||||
|
||||
// iterators
|
||||
std::map<char *, char *>::iterator i1, i2, i3;
|
||||
@@ -151,27 +151,27 @@ void test_map()
|
||||
}
|
||||
for (i2 = m2.begin(); i2 != m2.end(); i2++)
|
||||
{
|
||||
sink(*i2); // $ ast,ir
|
||||
sink(*i2); // $ ir
|
||||
sink(i2->first); // clean
|
||||
sink(i2->second); // $ MISSING: ast,ir
|
||||
sink(i2->second); // $ MISSING: ir
|
||||
}
|
||||
for (i3 = m3.begin(); i3 != m3.end(); i3++)
|
||||
{
|
||||
sink(*i3); // $ MISSING: ast,ir
|
||||
sink(i3->first); // $ MISSING: ast,ir
|
||||
sink(*i3); // $ MISSING: ir
|
||||
sink(i3->first); // $ MISSING: ir
|
||||
sink(i3->second); // clean
|
||||
}
|
||||
|
||||
// array-like access
|
||||
std::map<char *, char *> m10, m11, m12, m13;
|
||||
sink(m10["abc"] = "def");
|
||||
sink(m11["abc"] = source()); // $ ast,ir
|
||||
sink(m11["abc"] = source()); // $ ir
|
||||
sink(m12.at("abc") = "def");
|
||||
sink(m13.at("abc") = source()); // $ ast,ir
|
||||
sink(m13.at("abc") = source()); // $ ir
|
||||
sink(m10["abc"]);
|
||||
sink(m11["abc"]); // $ ast,ir
|
||||
sink(m11["abc"]); // $ ir
|
||||
sink(m12["abc"]);
|
||||
sink(m13["abc"]); // $ ast,ir
|
||||
sink(m13["abc"]); // $ ir
|
||||
|
||||
// ranges
|
||||
std::map<char *, char *> m14;
|
||||
@@ -179,27 +179,27 @@ void test_map()
|
||||
m14.insert(std::make_pair("b", source()));
|
||||
m14.insert(std::make_pair("c", source()));
|
||||
m14.insert(std::make_pair("d", "d"));
|
||||
sink(m14.lower_bound("b")); // $ ast,ir=179:33 ast,ir=180:33
|
||||
sink(m14.upper_bound("b")); // $ ast,ir=179:33 ast,ir=180:33
|
||||
sink(m14.equal_range("b").first); // $ MISSING: ast,ir
|
||||
sink(m14.equal_range("b").second); // $ MISSING: ast,ir
|
||||
sink(m14.upper_bound("c")); // $ SPURIOUS: ast,ir=179:33 ast,ir=180:33
|
||||
sink(m14.lower_bound("b")); // $ ir=179:33 ir=180:33
|
||||
sink(m14.upper_bound("b")); // $ ir=179:33 ir=180:33
|
||||
sink(m14.equal_range("b").first); // $ MISSING: ir
|
||||
sink(m14.equal_range("b").second); // $ MISSING: ir
|
||||
sink(m14.upper_bound("c")); // $ SPURIOUS: ir=179:33 ir=180:33
|
||||
sink(m14.equal_range("c").second);
|
||||
|
||||
// swap
|
||||
std::map<char *, char *> m15, m16, m17, m18;
|
||||
m15.insert(std::pair<char *, char *>(source(), source()));
|
||||
m18.insert(std::pair<char *, char *>(source(), source()));
|
||||
sink(m15); // $ ast,ir
|
||||
sink(m15); // $ ir
|
||||
sink(m16);
|
||||
sink(m17);
|
||||
sink(m18); // $ ast,ir
|
||||
sink(m18); // $ ir
|
||||
m15.swap(m16);
|
||||
m17.swap(m18);
|
||||
sink(m15); // $ SPURIOUS: ast,ir
|
||||
sink(m16); // $ ast,ir
|
||||
sink(m17); // $ ast,ir
|
||||
sink(m18); // $ SPURIOUS: ast,ir
|
||||
sink(m15); // $ SPURIOUS: ir
|
||||
sink(m16); // $ ir
|
||||
sink(m17); // $ ir
|
||||
sink(m18); // $ SPURIOUS: ir
|
||||
|
||||
// merge
|
||||
std::map<char *, char *> m19, m20, m21, m22;
|
||||
@@ -207,48 +207,48 @@ void test_map()
|
||||
m20.insert(std::pair<char *, char *>("abc", "def"));
|
||||
m21.insert(std::pair<char *, char *>("abc", "def"));
|
||||
m22.insert(std::pair<char *, char *>(source(), source()));
|
||||
sink(m19); // $ ast,ir
|
||||
sink(m19); // $ ir
|
||||
sink(m20);
|
||||
sink(m21);
|
||||
sink(m22); // $ ast,ir
|
||||
sink(m22); // $ ir
|
||||
m19.merge(m20);
|
||||
m21.merge(m22);
|
||||
sink(m19); // $ ast,ir
|
||||
sink(m19); // $ ir
|
||||
sink(m20);
|
||||
sink(m21); // $ ast,ir
|
||||
sink(m22); // $ ast,ir
|
||||
sink(m21); // $ ir
|
||||
sink(m22); // $ ir
|
||||
|
||||
// erase, clear
|
||||
std::map<char *, char *> m23;
|
||||
m23.insert(std::pair<char *, char *>(source(), source()));
|
||||
m23.insert(std::pair<char *, char *>(source(), source()));
|
||||
sink(m23); // $ ast,ir=223:49 ast,ir=224:49
|
||||
sink(m23.erase(m23.begin())); // $ ast,ir=223:49 ast,ir=224:49
|
||||
sink(m23); // $ ast,ir=223:49 ast,ir=224:49
|
||||
sink(m23); // $ ir=223:49 ir=224:49
|
||||
sink(m23.erase(m23.begin())); // $ ir=223:49 ir=224:49
|
||||
sink(m23); // $ ir=223:49 ir=224:49
|
||||
m23.clear();
|
||||
sink(m23); // $ SPURIOUS: ast,ir=223:49 ast,ir=224:49
|
||||
sink(m23); // $ SPURIOUS: ir=223:49 ir=224:49
|
||||
|
||||
// emplace, emplace_hint
|
||||
std::map<char *, char *> m24, m25;
|
||||
sink(m24.emplace("abc", "def").first);
|
||||
sink(m24);
|
||||
sink(m24.emplace("abc", source()).first);
|
||||
sink(m24); // $ ast,ir
|
||||
sink(m24); // $ ir
|
||||
sink(m25.emplace_hint(m25.begin(), "abc", "def"));
|
||||
sink(m25);
|
||||
sink(m25.emplace_hint(m25.begin(), "abc", source())); // $ ast,ir
|
||||
sink(m25); // $ ast,ir
|
||||
sink(m25.emplace_hint(m25.begin(), "abc", source())); // $ ir
|
||||
sink(m25); // $ ir
|
||||
|
||||
// try_emplace
|
||||
std::map<char *, char *> m26, m27;
|
||||
sink(m26.try_emplace("abc", "def").first);
|
||||
sink(m26);
|
||||
sink(m26.try_emplace("abc", source()).first);
|
||||
sink(m26); // $ ast,ir
|
||||
sink(m26); // $ ir
|
||||
sink(m27.try_emplace(m27.begin(), "abc", "def"));
|
||||
sink(m27);
|
||||
sink(m27.try_emplace(m27.begin(), "abc", source())); // $ ast,ir
|
||||
sink(m27); // $ ast,ir
|
||||
sink(m27.try_emplace(m27.begin(), "abc", source())); // $ ir
|
||||
sink(m27); // $ ir
|
||||
}
|
||||
|
||||
void test_unordered_map()
|
||||
@@ -258,40 +258,40 @@ void test_unordered_map()
|
||||
|
||||
sink(m1.insert(std::make_pair("abc", "def")).first);
|
||||
sink(m2.insert(std::make_pair("abc", source())).first);
|
||||
sink(m3.insert(std::make_pair(source(), "def")).first); // $ MISSING: ast,ir
|
||||
sink(m4.insert(m4.begin(), std::pair<char *, char *>("abc", source()))); // $ ast,ir
|
||||
sink(m3.insert(std::make_pair(source(), "def")).first); // $ MISSING: ir
|
||||
sink(m4.insert(m4.begin(), std::pair<char *, char *>("abc", source()))); // $ ir
|
||||
sink(m5.insert_or_assign("abc", source()).first);
|
||||
sink(m6.insert_or_assign(m6.begin(), "abc", source())); // $ ast,ir
|
||||
sink(m6.insert_or_assign(m6.begin(), "abc", source())); // $ ir
|
||||
sink(m1);
|
||||
sink(m2); // $ ast,ir
|
||||
sink(m3); // $ MISSING: ast,ir
|
||||
sink(m4); // $ ast,ir
|
||||
sink(m5); // $ ast,ir
|
||||
sink(m6); // $ ast,ir
|
||||
sink(m2); // $ ir
|
||||
sink(m3); // $ MISSING: ir
|
||||
sink(m4); // $ ir
|
||||
sink(m5); // $ ir
|
||||
sink(m6); // $ ir
|
||||
sink(m1.find("abc"));
|
||||
sink(m2.find("abc")); // $ ast,ir
|
||||
sink(m2.find("abc")); // $ ir
|
||||
sink(m3.find("abc"));
|
||||
sink(m4.find("abc")); // $ ast,ir
|
||||
sink(m5.find("abc")); // $ ast,ir
|
||||
sink(m6.find("abc")); // $ ast,ir
|
||||
sink(m4.find("abc")); // $ ir
|
||||
sink(m5.find("abc")); // $ ir
|
||||
sink(m6.find("abc")); // $ ir
|
||||
sink(m1.find("def"));
|
||||
sink(m2.find("def")); // $ SPURIOUS: ast,ir
|
||||
sink(m2.find("def")); // $ SPURIOUS: ir
|
||||
sink(m3.find("def"));
|
||||
sink(m4.find("def")); // $ SPURIOUS: ast,ir
|
||||
sink(m5.find("def")); // $ SPURIOUS: ast,ir
|
||||
sink(m6.find("def")); // $ SPURIOUS: ast,ir
|
||||
sink(m4.find("def")); // $ SPURIOUS: ir
|
||||
sink(m5.find("def")); // $ SPURIOUS: ir
|
||||
sink(m6.find("def")); // $ SPURIOUS: ir
|
||||
|
||||
// copy constructors and assignment
|
||||
std::unordered_map<char *, char *> m7(m2);
|
||||
std::unordered_map<char *, char *> m8 = m2;
|
||||
std::unordered_map<char *, char *> m9;
|
||||
m9 = m2;
|
||||
sink(m7); // $ ast,ir
|
||||
sink(m8); // $ ast,ir
|
||||
sink(m9); // $ ast,ir
|
||||
sink(m7.find("abc")); // $ ast,ir
|
||||
sink(m8.find("abc")); // $ ast,ir
|
||||
sink(m9.find("abc")); // $ ast,ir
|
||||
sink(m7); // $ ir
|
||||
sink(m8); // $ ir
|
||||
sink(m9); // $ ir
|
||||
sink(m7.find("abc")); // $ ir
|
||||
sink(m8.find("abc")); // $ ir
|
||||
sink(m9.find("abc")); // $ ir
|
||||
|
||||
// iterators
|
||||
std::unordered_map<char *, char *>::iterator i1, i2, i3;
|
||||
@@ -303,27 +303,27 @@ void test_unordered_map()
|
||||
}
|
||||
for (i2 = m2.begin(); i2 != m2.end(); i2++)
|
||||
{
|
||||
sink(*i2); // $ ast,ir
|
||||
sink(*i2); // $ ir
|
||||
sink(i2->first); // clean
|
||||
sink(i2->second); // $ MISSING: ast,ir
|
||||
sink(i2->second); // $ MISSING: ir
|
||||
}
|
||||
for (i3 = m3.begin(); i3 != m3.end(); i3++)
|
||||
{
|
||||
sink(*i3); // $ MISSING: ast,ir
|
||||
sink(i3->first); // $ MISSING: ast,ir
|
||||
sink(*i3); // $ MISSING: ir
|
||||
sink(i3->first); // $ MISSING: ir
|
||||
sink(i3->second); // clean
|
||||
}
|
||||
|
||||
// array-like access
|
||||
std::unordered_map<char *, char *> m10, m11, m12, m13;
|
||||
sink(m10["abc"] = "def");
|
||||
sink(m11["abc"] = source()); // $ ast,ir
|
||||
sink(m11["abc"] = source()); // $ ir
|
||||
sink(m12.at("abc") = "def");
|
||||
sink(m13.at("abc") = source()); // $ ast,ir
|
||||
sink(m13.at("abc") = source()); // $ ir
|
||||
sink(m10["abc"]);
|
||||
sink(m11["abc"]); // $ ast,ir
|
||||
sink(m11["abc"]); // $ ir
|
||||
sink(m12["abc"]);
|
||||
sink(m13["abc"]); // $ ast,ir
|
||||
sink(m13["abc"]); // $ ir
|
||||
|
||||
// ranges
|
||||
std::unordered_map<char *, char *> m14;
|
||||
@@ -332,23 +332,23 @@ void test_unordered_map()
|
||||
m14.insert(std::make_pair("c", source()));
|
||||
m14.insert(std::make_pair("d", "d"));
|
||||
sink(m14.equal_range("b").first);
|
||||
sink(m14.equal_range("b").second); // $ MISSING: ast,ir
|
||||
sink(m14.equal_range("b").second); // $ MISSING: ir
|
||||
sink(m14.equal_range("c").second);
|
||||
|
||||
// swap
|
||||
std::unordered_map<char *, char *> m15, m16, m17, m18;
|
||||
m15.insert(std::pair<char *, char *>(source(), source()));
|
||||
m18.insert(std::pair<char *, char *>(source(), source()));
|
||||
sink(m15); // $ ast,ir
|
||||
sink(m15); // $ ir
|
||||
sink(m16);
|
||||
sink(m17);
|
||||
sink(m18); // $ ast,ir
|
||||
sink(m18); // $ ir
|
||||
m15.swap(m16);
|
||||
m17.swap(m18);
|
||||
sink(m15); // $ SPURIOUS: ast,ir
|
||||
sink(m16); // $ ast,ir
|
||||
sink(m17); // $ ast,ir
|
||||
sink(m18); // $ SPURIOUS: ast,ir
|
||||
sink(m15); // $ SPURIOUS: ir
|
||||
sink(m16); // $ ir
|
||||
sink(m17); // $ ir
|
||||
sink(m18); // $ SPURIOUS: ir
|
||||
|
||||
// merge
|
||||
std::unordered_map<char *, char *> m19, m20, m21, m22;
|
||||
@@ -356,37 +356,37 @@ void test_unordered_map()
|
||||
m20.insert(std::pair<char *, char *>("abc", "def"));
|
||||
m21.insert(std::pair<char *, char *>("abc", "def"));
|
||||
m22.insert(std::pair<char *, char *>(source(), source()));
|
||||
sink(m19); // $ ast,ir
|
||||
sink(m19); // $ ir
|
||||
sink(m20);
|
||||
sink(m21);
|
||||
sink(m22); // $ ast,ir
|
||||
sink(m22); // $ ir
|
||||
m19.merge(m20);
|
||||
m21.merge(m22);
|
||||
sink(m19); // $ ast,ir
|
||||
sink(m19); // $ ir
|
||||
sink(m20);
|
||||
sink(m21); // $ ast,ir
|
||||
sink(m22); // $ ast,ir
|
||||
sink(m21); // $ ir
|
||||
sink(m22); // $ ir
|
||||
|
||||
// erase, clear
|
||||
std::unordered_map<char *, char *> m23;
|
||||
m23.insert(std::pair<char *, char *>(source(), source()));
|
||||
m23.insert(std::pair<char *, char *>(source(), source()));
|
||||
sink(m23); // $ ast,ir=372:49 ast,ir=373:49
|
||||
sink(m23.erase(m23.begin())); // $ ast,ir=372:49 ast,ir=373:49
|
||||
sink(m23); // $ ast,ir=372:49 ast,ir=373:49
|
||||
sink(m23); // $ ir=372:49 ir=373:49
|
||||
sink(m23.erase(m23.begin())); // $ ir=372:49 ir=373:49
|
||||
sink(m23); // $ ir=372:49 ir=373:49
|
||||
m23.clear();
|
||||
sink(m23); // $ SPURIOUS: ast,ir=372:49 ast,ir=373:49
|
||||
sink(m23); // $ SPURIOUS: ir=372:49 ir=373:49
|
||||
|
||||
// emplace, emplace_hint
|
||||
std::unordered_map<char *, char *> m24, m25;
|
||||
sink(m24.emplace("abc", "def").first);
|
||||
sink(m24);
|
||||
sink(m24.emplace("abc", source()).first);
|
||||
sink(m24); // $ ast,ir
|
||||
sink(m24); // $ ir
|
||||
sink(m25.emplace_hint(m25.begin(), "abc", "def"));
|
||||
sink(m25);
|
||||
sink(m25.emplace_hint(m25.begin(), "abc", source())); // $ ast,ir
|
||||
sink(m25); // $ ast,ir
|
||||
sink(m25.emplace_hint(m25.begin(), "abc", source())); // $ ir
|
||||
sink(m25); // $ ir
|
||||
|
||||
// try_emplace
|
||||
std::unordered_map<char *, char *> m26, m27, m28;
|
||||
@@ -394,45 +394,45 @@ void test_unordered_map()
|
||||
sink(m26.try_emplace("abc", "def").second);
|
||||
sink(m26);
|
||||
sink(m26.try_emplace("abc", source()).first);
|
||||
sink(m26.try_emplace("abc", source()).second); // $ MISSING: ast,ir=396:30
|
||||
sink(m26); // $ ast,ir=396:30 SPURIOUS: ast,ir=397:30
|
||||
sink(m26.try_emplace("abc", source()).second); // $ MISSING: ir=396:30
|
||||
sink(m26); // $ ir=396:30 SPURIOUS: ir=397:30
|
||||
sink(m27.try_emplace(m27.begin(), "abc", "def"));
|
||||
sink(m27);
|
||||
sink(m27.try_emplace(m27.begin(), "abc", source())); // $ ast,ir
|
||||
sink(m27); // $ ast,ir
|
||||
sink(m27.try_emplace(m27.begin(), "abc", source())); // $ ir
|
||||
sink(m27); // $ ir
|
||||
sink(m28.try_emplace(m28.begin(), "abc", "def"));
|
||||
sink(m28);
|
||||
sink(m28.try_emplace(m28.begin(), source(), "def")); // $ MISSING: ast,ir
|
||||
sink(m28); // $ MISSING: ast,ir
|
||||
sink(m28.try_emplace(m28.begin(), source(), "def")); // $ MISSING: ir
|
||||
sink(m28); // $ MISSING: ir
|
||||
|
||||
// additional try_emplace test cases
|
||||
std::unordered_map<char *, std::pair<int, int>> m29, m30, m31, m32;
|
||||
sink(m29.try_emplace("abc", 1, 2));
|
||||
sink(m29);
|
||||
sink(m29["abc"]);
|
||||
sink(m30.try_emplace(source(), 1, 2)); // $ MISSING: ast,ir
|
||||
sink(m30); // $ MISSING: ast,ir
|
||||
sink(m30.try_emplace(source(), 1, 2)); // $ MISSING: ir
|
||||
sink(m30); // $ MISSING: ir
|
||||
sink(m30["abc"]);
|
||||
sink(m31.try_emplace("abc", source(), 2)); // $ ast,ir
|
||||
sink(m31); // $ ast,ir
|
||||
sink(m31["abc"]); // $ ast,ir
|
||||
sink(m32.try_emplace("abc", 1, source())); // $ ast,ir
|
||||
sink(m32); // $ ast,ir
|
||||
sink(m32["abc"]); // $ ast,ir
|
||||
sink(m31.try_emplace("abc", source(), 2)); // $ ir
|
||||
sink(m31); // $ ir
|
||||
sink(m31["abc"]); // $ ir
|
||||
sink(m32.try_emplace("abc", 1, source())); // $ ir
|
||||
sink(m32); // $ ir
|
||||
sink(m32["abc"]); // $ ir
|
||||
|
||||
// additional emplace test cases
|
||||
std::unordered_map<char *, char *> m33;
|
||||
sink(m33.emplace(source(), "def").first); // $ MISSING: ast,ir
|
||||
sink(m33); // $ MISSING: ast,ir
|
||||
sink(m33.emplace(source(), "def").first); // $ MISSING: ir
|
||||
sink(m33); // $ MISSING: ir
|
||||
|
||||
std::unordered_map<char *, char *> m34, m35;
|
||||
sink(m34.emplace(std::pair<char *, char *>("abc", "def")).first);
|
||||
sink(m34);
|
||||
sink(m34.emplace(std::pair<char *, char *>("abc", source())).first);
|
||||
sink(m34); // $ ast,ir
|
||||
sink(m34.emplace_hint(m34.begin(), "abc", "def")); // $ ast,ir
|
||||
sink(m34); // $ ir
|
||||
sink(m34.emplace_hint(m34.begin(), "abc", "def")); // $ ir
|
||||
sink(m35.emplace().first);
|
||||
sink(m35);
|
||||
sink(m35.emplace(std::pair<char *, char *>(source(), "def")).first); // $ MISSING: ast,ir
|
||||
sink(m35); // $ MISSING: ast,ir
|
||||
sink(m35.emplace(std::pair<char *, char *>(source(), "def")).first); // $ MISSING: ir
|
||||
sink(m35); // $ MISSING: ir
|
||||
}
|
||||
|
||||
@@ -41,9 +41,9 @@ void test_movableclass()
|
||||
MyMovableClass s3;
|
||||
s3 = source();
|
||||
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s3); // $ ast,ir
|
||||
sink(s1); // $ ir
|
||||
sink(s2); // $ ir
|
||||
sink(s3); // $ ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -51,8 +51,8 @@ void test_movableclass()
|
||||
MyMovableClass s2;
|
||||
s2 = MyMovableClass(source());
|
||||
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s1); // $ ir
|
||||
sink(s2); // $ ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -61,7 +61,7 @@ void test_movableclass()
|
||||
MyMovableClass s3;
|
||||
|
||||
sink(s1);
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s3 = source()); // $ ast,ir
|
||||
sink(s2); // $ ir
|
||||
sink(s3 = source()); // $ ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,23 +17,23 @@ void test_set()
|
||||
std::set<char *> s1, s2, s3, s4, s5, s6;
|
||||
|
||||
sink(s1.insert("abc").first);
|
||||
sink(s2.insert(source()).first); // $ MISSING: ast,ir
|
||||
sink(s2.insert(source()).first); // $ MISSING: ir
|
||||
sink(s3.insert(s3.begin(), "abc"));
|
||||
sink(s4.insert(s4.begin(), source())); // $ ast,ir
|
||||
sink(s4.insert(s4.begin(), source())); // $ ir
|
||||
s5.insert(s1.begin(), s1.end());
|
||||
s6.insert(s2.begin(), s2.end());
|
||||
sink(s1);
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s2); // $ ir
|
||||
sink(s3);
|
||||
sink(s4); // $ ast,ir
|
||||
sink(s4); // $ ir
|
||||
sink(s5);
|
||||
sink(s6); // $ ast,ir
|
||||
sink(s6); // $ ir
|
||||
sink(s1.find("abc"));
|
||||
sink(s2.find("abc")); // $ ast,ir
|
||||
sink(s2.find("abc")); // $ ir
|
||||
sink(s3.find("abc"));
|
||||
sink(s4.find("abc")); // $ ast,ir
|
||||
sink(s4.find("abc")); // $ ir
|
||||
sink(s5.find("abc"));
|
||||
sink(s6.find("abc")); // $ ast,ir
|
||||
sink(s6.find("abc")); // $ ir
|
||||
|
||||
// copy constructors and assignment
|
||||
std::set<char *> s7(s2);
|
||||
@@ -41,14 +41,14 @@ void test_set()
|
||||
std::set<char *> s9(s2.begin(), s2.end());
|
||||
std::set<char *> s10;
|
||||
s10 = s2;
|
||||
sink(s7); // $ ast,ir
|
||||
sink(s8); // $ ast,ir
|
||||
sink(s9); // $ ast,ir
|
||||
sink(s10); // $ ast,ir
|
||||
sink(s7.find("abc")); // $ ast,ir
|
||||
sink(s8.find("abc")); // $ ast,ir
|
||||
sink(s9.find("abc")); // $ ast,ir
|
||||
sink(s10.find("abc")); // $ ast,ir
|
||||
sink(s7); // $ ir
|
||||
sink(s8); // $ ir
|
||||
sink(s9); // $ ir
|
||||
sink(s10); // $ ir
|
||||
sink(s7.find("abc")); // $ ir
|
||||
sink(s8.find("abc")); // $ ir
|
||||
sink(s9.find("abc")); // $ ir
|
||||
sink(s10.find("abc")); // $ ir
|
||||
|
||||
// iterators
|
||||
std::set<char *>::iterator i1, i2;
|
||||
@@ -58,7 +58,7 @@ void test_set()
|
||||
}
|
||||
for (i2 = s2.begin(); i2 != s2.end(); i2++)
|
||||
{
|
||||
sink(*i2); // $ ast,ir
|
||||
sink(*i2); // $ ir
|
||||
}
|
||||
|
||||
// ranges
|
||||
@@ -66,25 +66,25 @@ void test_set()
|
||||
s11.insert("a");
|
||||
s11.insert(source());
|
||||
s11.insert("c");
|
||||
sink(s11.lower_bound("b")); // $ ast,ir
|
||||
sink(s11.upper_bound("b")); // $ ast,ir
|
||||
sink(s11.equal_range("b").first); // $ MISSING: ast,ir
|
||||
sink(s11.equal_range("b").second); // $ MISSING: ast,ir
|
||||
sink(s11.lower_bound("b")); // $ ir
|
||||
sink(s11.upper_bound("b")); // $ ir
|
||||
sink(s11.equal_range("b").first); // $ MISSING: ir
|
||||
sink(s11.equal_range("b").second); // $ MISSING: ir
|
||||
|
||||
// swap
|
||||
std::set<char *> s12, s13, s14, s15;
|
||||
s12.insert(source());
|
||||
s15.insert(source());
|
||||
sink(s12); // $ ast,ir
|
||||
sink(s12); // $ ir
|
||||
sink(s13);
|
||||
sink(s14);
|
||||
sink(s15); // $ ast,ir
|
||||
sink(s15); // $ ir
|
||||
s12.swap(s13);
|
||||
s14.swap(s15);
|
||||
sink(s12); // $ SPURIOUS: ast,ir
|
||||
sink(s13); // $ ast,ir
|
||||
sink(s14); // $ ast,ir
|
||||
sink(s15); // $ SPURIOUS: ast,ir
|
||||
sink(s12); // $ SPURIOUS: ir
|
||||
sink(s13); // $ ir
|
||||
sink(s14); // $ ir
|
||||
sink(s15); // $ SPURIOUS: ir
|
||||
|
||||
// merge
|
||||
std::set<char *> s16, s17, s18, s19;
|
||||
@@ -92,37 +92,37 @@ void test_set()
|
||||
s17.insert("abc");
|
||||
s18.insert("def");
|
||||
s19.insert(source());
|
||||
sink(s16); // $ ast,ir
|
||||
sink(s16); // $ ir
|
||||
sink(s17);
|
||||
sink(s18);
|
||||
sink(s19); // $ ast,ir
|
||||
sink(s19); // $ ir
|
||||
s16.merge(s17);
|
||||
s18.merge(s19);
|
||||
sink(s16); // $ ast,ir
|
||||
sink(s16); // $ ir
|
||||
sink(s17);
|
||||
sink(s18); // $ ast,ir
|
||||
sink(s19); // $ ast,ir
|
||||
sink(s18); // $ ir
|
||||
sink(s19); // $ ir
|
||||
|
||||
// erase, clear
|
||||
std::set<char *> s20;
|
||||
s20.insert(source());
|
||||
s20.insert(source());
|
||||
sink(s20); // $ ast,ir=108:13 ast,ir=109:13
|
||||
sink(s20.erase(s20.begin())); // $ ast,ir=108:13 ast,ir=109:13
|
||||
sink(s20); // $ ast,ir=108:13 ast,ir=109:13
|
||||
sink(s20); // $ ir=108:13 ir=109:13
|
||||
sink(s20.erase(s20.begin())); // $ ir=108:13 ir=109:13
|
||||
sink(s20); // $ ir=108:13 ir=109:13
|
||||
s20.clear();
|
||||
sink(s20); // $ SPURIOUS: ast,ir=108:13 ast,ir=109:13
|
||||
sink(s20); // $ SPURIOUS: ir=108:13 ir=109:13
|
||||
|
||||
// emplace, emplace_hint
|
||||
std::set<char *> s21, s22;
|
||||
sink(s21.emplace("abc").first);
|
||||
sink(s21);
|
||||
sink(s21.emplace(source()).first); // $ MISSING: ast,ir
|
||||
sink(s21); // $ ast,ir
|
||||
sink(s21.emplace(source()).first); // $ MISSING: ir
|
||||
sink(s21); // $ ir
|
||||
sink(s22.emplace_hint(s22.begin(), "abc"));
|
||||
sink(s22);
|
||||
sink(s22.emplace_hint(s22.begin(), source())); // $ ast,ir
|
||||
sink(s22); // $ ast,ir
|
||||
sink(s22.emplace_hint(s22.begin(), source())); // $ ir
|
||||
sink(s22); // $ ir
|
||||
}
|
||||
|
||||
void test_unordered_set()
|
||||
@@ -131,23 +131,23 @@ void test_unordered_set()
|
||||
std::unordered_set<char *> s1, s2, s3, s4, s5, s6;
|
||||
|
||||
sink(s1.insert("abc").first);
|
||||
sink(s2.insert(source()).first); // $ MISSING: ast,ir
|
||||
sink(s2.insert(source()).first); // $ MISSING: ir
|
||||
sink(s3.insert(s3.begin(), "abc"));
|
||||
sink(s4.insert(s4.begin(), source())); // $ ast,ir
|
||||
sink(s4.insert(s4.begin(), source())); // $ ir
|
||||
s5.insert(s1.begin(), s1.end());
|
||||
s6.insert(s2.begin(), s2.end());
|
||||
sink(s1);
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s2); // $ ir
|
||||
sink(s3);
|
||||
sink(s4); // $ ast,ir
|
||||
sink(s4); // $ ir
|
||||
sink(s5);
|
||||
sink(s6); // $ ast,ir
|
||||
sink(s6); // $ ir
|
||||
sink(s1.find("abc"));
|
||||
sink(s2.find("abc")); // $ ast,ir
|
||||
sink(s2.find("abc")); // $ ir
|
||||
sink(s3.find("abc"));
|
||||
sink(s4.find("abc")); // $ ast,ir
|
||||
sink(s4.find("abc")); // $ ir
|
||||
sink(s5.find("abc"));
|
||||
sink(s6.find("abc")); // $ ast,ir
|
||||
sink(s6.find("abc")); // $ ir
|
||||
|
||||
// copy constructors and assignment
|
||||
std::unordered_set<char *> s7(s2);
|
||||
@@ -155,14 +155,14 @@ void test_unordered_set()
|
||||
std::unordered_set<char *> s9(s2.begin(), s2.end());
|
||||
std::unordered_set<char *> s10;
|
||||
s10 = s2;
|
||||
sink(s7); // $ ast,ir
|
||||
sink(s8); // $ ast,ir
|
||||
sink(s9); // $ ast,ir
|
||||
sink(s10); // $ ast,ir
|
||||
sink(s7.find("abc")); // $ ast,ir
|
||||
sink(s8.find("abc")); // $ ast,ir
|
||||
sink(s9.find("abc")); // $ ast,ir
|
||||
sink(s10.find("abc")); // $ ast,ir
|
||||
sink(s7); // $ ir
|
||||
sink(s8); // $ ir
|
||||
sink(s9); // $ ir
|
||||
sink(s10); // $ ir
|
||||
sink(s7.find("abc")); // $ ir
|
||||
sink(s8.find("abc")); // $ ir
|
||||
sink(s9.find("abc")); // $ ir
|
||||
sink(s10.find("abc")); // $ ir
|
||||
|
||||
// iterators
|
||||
std::unordered_set<char *>::iterator i1, i2;
|
||||
@@ -172,7 +172,7 @@ void test_unordered_set()
|
||||
}
|
||||
for (i2 = s2.begin(); i2 != s2.end(); i2++)
|
||||
{
|
||||
sink(*i2); // $ ast,ir
|
||||
sink(*i2); // $ ir
|
||||
}
|
||||
|
||||
// ranges
|
||||
@@ -180,23 +180,23 @@ void test_unordered_set()
|
||||
s11.insert("a");
|
||||
s11.insert(source());
|
||||
s11.insert("c");
|
||||
sink(s11.equal_range("b").first); // $ MISSING: ast,ir
|
||||
sink(s11.equal_range("b").second); // $ MISSING: ast,ir
|
||||
sink(s11.equal_range("b").first); // $ MISSING: ir
|
||||
sink(s11.equal_range("b").second); // $ MISSING: ir
|
||||
|
||||
// swap
|
||||
std::unordered_set<char *> s12, s13, s14, s15;
|
||||
s12.insert(source());
|
||||
s15.insert(source());
|
||||
sink(s12); // $ ast,ir
|
||||
sink(s12); // $ ir
|
||||
sink(s13);
|
||||
sink(s14);
|
||||
sink(s15); // $ ast,ir
|
||||
sink(s15); // $ ir
|
||||
s12.swap(s13);
|
||||
s14.swap(s15);
|
||||
sink(s12); // $ SPURIOUS: ast,ir
|
||||
sink(s13); // $ ast,ir
|
||||
sink(s14); // $ ast,ir
|
||||
sink(s15); // $ SPURIOUS: ast,ir
|
||||
sink(s12); // $ SPURIOUS: ir
|
||||
sink(s13); // $ ir
|
||||
sink(s14); // $ ir
|
||||
sink(s15); // $ SPURIOUS: ir
|
||||
|
||||
// merge
|
||||
std::unordered_set<char *> s16, s17, s18, s19;
|
||||
@@ -204,35 +204,35 @@ void test_unordered_set()
|
||||
s17.insert("abc");
|
||||
s18.insert("def");
|
||||
s19.insert(source());
|
||||
sink(s16); // $ ast,ir
|
||||
sink(s16); // $ ir
|
||||
sink(s17);
|
||||
sink(s18);
|
||||
sink(s19); // $ ast,ir
|
||||
sink(s19); // $ ir
|
||||
s16.merge(s17);
|
||||
s18.merge(s19);
|
||||
sink(s16); // $ ast,ir
|
||||
sink(s16); // $ ir
|
||||
sink(s17);
|
||||
sink(s18); // $ ast,ir
|
||||
sink(s19); // $ ast,ir
|
||||
sink(s18); // $ ir
|
||||
sink(s19); // $ ir
|
||||
|
||||
// erase, clear
|
||||
std::unordered_set<char *> s20;
|
||||
s20.insert(source());
|
||||
s20.insert(source());
|
||||
sink(s20); // $ ast,ir=220:13 ast,ir=221:13
|
||||
sink(s20.erase(s20.begin())); // $ ast,ir=220:13 ast,ir=221:13
|
||||
sink(s20); // $ ast,ir=220:13 ast,ir=221:13
|
||||
sink(s20); // $ ir=220:13 ir=221:13
|
||||
sink(s20.erase(s20.begin())); // $ ir=220:13 ir=221:13
|
||||
sink(s20); // $ ir=220:13 ir=221:13
|
||||
s20.clear();
|
||||
sink(s20); // $ SPURIOUS: ast,ir=220:13 ast,ir=221:13
|
||||
sink(s20); // $ SPURIOUS: ir=220:13 ir=221:13
|
||||
|
||||
// emplace, emplace_hint
|
||||
std::unordered_set<char *> s21, s22;
|
||||
sink(s21.emplace("abc").first);
|
||||
sink(s21);
|
||||
sink(s21.emplace(source()).first); // $ MISSING: ast,ir
|
||||
sink(s21); // $ ast,ir
|
||||
sink(s21.emplace(source()).first); // $ MISSING: ir
|
||||
sink(s21); // $ ir
|
||||
sink(s22.emplace_hint(s22.begin(), "abc"));
|
||||
sink(s22);
|
||||
sink(s22.emplace_hint(s22.begin(), source())); // $ ast,ir
|
||||
sink(s22); // $ ast,ir
|
||||
sink(s22.emplace_hint(s22.begin(), source())); // $ ir
|
||||
sink(s22); // $ ir
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ template<typename T> void sink(std::unique_ptr<T>&);
|
||||
|
||||
void test_make_shared() {
|
||||
std::shared_ptr<int> p = std::make_shared<int>(source());
|
||||
sink(*p); // $ ast,ir
|
||||
sink(p); // $ ast,ir
|
||||
sink(*p); // $ ir
|
||||
sink(p); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_make_shared_array() {
|
||||
@@ -21,8 +21,8 @@ void test_make_shared_array() {
|
||||
|
||||
void test_make_unique() {
|
||||
std::unique_ptr<int> p = std::make_unique<int>(source());
|
||||
sink(*p); // $ ast,ir
|
||||
sink(p); // $ ast,ir
|
||||
sink(*p); // $ ir
|
||||
sink(p); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_make_unique_array() {
|
||||
@@ -35,26 +35,26 @@ void test_reverse_taint_shared() {
|
||||
std::shared_ptr<int> p = std::make_shared<int>();
|
||||
|
||||
*p = source();
|
||||
sink(p); // $ ast MISSING: ir
|
||||
sink(*p); // $ ast MISSING: ir
|
||||
sink(p); // $ MISSING: ir
|
||||
sink(*p); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_reverse_taint_unique() {
|
||||
std::unique_ptr<int> p = std::unique_ptr<int>();
|
||||
|
||||
*p = source();
|
||||
sink(p); // $ ast MISSING: ir
|
||||
sink(*p); // $ ast MISSING: ir
|
||||
sink(p); // $ MISSING: ir
|
||||
sink(*p); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_shared_get() {
|
||||
std::shared_ptr<int> p = std::make_shared<int>(source());
|
||||
sink(p.get()); // $ ast,ir
|
||||
sink(p.get()); // $ ir
|
||||
}
|
||||
|
||||
void test_unique_get() {
|
||||
std::unique_ptr<int> p = std::make_unique<int>(source());
|
||||
sink(p.get()); // $ ast,ir
|
||||
sink(p.get()); // $ ir
|
||||
}
|
||||
|
||||
struct A {
|
||||
@@ -63,7 +63,7 @@ struct A {
|
||||
|
||||
void test_shared_field_member() {
|
||||
std::unique_ptr<A> p = std::make_unique<A>(source(), 0);
|
||||
sink(p->x); // $ MISSING: ast,ir
|
||||
sink(p->x); // $ MISSING: ir
|
||||
sink(p->y); // not tainted
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ void getNumber(std::shared_ptr<int> ptr) {
|
||||
int test_from_issue_5190() {
|
||||
std::shared_ptr<int> p(new int);
|
||||
getNumber(p);
|
||||
sink(*p); // $ ast MISSING: ir
|
||||
sink(*p); // $ MISSING: ir
|
||||
}
|
||||
|
||||
struct B {
|
||||
@@ -85,11 +85,11 @@ struct B {
|
||||
|
||||
void test_operator_arrow(std::unique_ptr<A> p, std::unique_ptr<B> q) {
|
||||
p->x = source();
|
||||
sink(p->x); // $ ast MISSING: ir
|
||||
sink(p->x); // $ MISSING: ir
|
||||
sink(p->y);
|
||||
|
||||
q->a1.x = source();
|
||||
sink(q->a1.x); // $ ast MISSING: ir
|
||||
sink(q->a1.x); // $ MISSING: ir
|
||||
sink(q->a1.y);
|
||||
sink(q->a2.x);
|
||||
}
|
||||
@@ -101,7 +101,7 @@ void taint_x(A* pa) {
|
||||
void reverse_taint_smart_pointer() {
|
||||
std::unique_ptr<A> p = std::unique_ptr<A>(new A);
|
||||
taint_x(p.get());
|
||||
sink(p->x); // $ ast MISSING: ir
|
||||
sink(p->x); // $ MISSING: ir
|
||||
}
|
||||
|
||||
struct C {
|
||||
@@ -123,16 +123,16 @@ void getNumberCRef(const std::shared_ptr<int>& ptr) {
|
||||
|
||||
int nested_shared_ptr_taint(std::shared_ptr<C> p1, std::unique_ptr<std::shared_ptr<int>> p2) {
|
||||
taint_x_shared(p1->q);
|
||||
sink(p1->q->x); // $ ast MISSING: ir
|
||||
sink(p1->q->x); // $ MISSING: ir
|
||||
|
||||
getNumber(*p2);
|
||||
sink(**p2); // $ ast MISSING: ir
|
||||
sink(**p2); // $ MISSING: ir
|
||||
}
|
||||
|
||||
int nested_shared_ptr_taint_cref(std::shared_ptr<C> p1, std::unique_ptr<std::shared_ptr<int>> p2) {
|
||||
taint_x_shared_cref(p1->q);
|
||||
sink(p1->q->x); // $ ast MISSING: ir
|
||||
sink(p1->q->x); // $ MISSING: ir
|
||||
|
||||
getNumberCRef(*p2);
|
||||
sink(**p2); // $ ast MISSING: ir
|
||||
sink(**p2); // $ MISSING: ir
|
||||
}
|
||||
@@ -37,15 +37,15 @@ public:
|
||||
};
|
||||
|
||||
void test_typedefs(int_iterator_by_typedefs source1) {
|
||||
sink(*source1); // $ ast,ir
|
||||
sink(*(source1++)); // $ ast,ir
|
||||
sink(*(++source1)); // $ ast,ir
|
||||
sink(*source1); // $ ir
|
||||
sink(*(source1++)); // $ ir
|
||||
sink(*(++source1)); // $ ir
|
||||
}
|
||||
|
||||
void test_trait(int_iterator_by_trait source1) {
|
||||
sink(*source1); // $ ast,ir
|
||||
sink(*(source1++)); // $ ast,ir
|
||||
sink(*(++source1)); // $ ast,ir
|
||||
sink(*source1); // $ ir
|
||||
sink(*(source1++)); // $ ir
|
||||
sink(*(++source1)); // $ ir
|
||||
}
|
||||
|
||||
void test_non_iterator(non_iterator source1) {
|
||||
@@ -84,7 +84,7 @@ void test_insert_iterator() {
|
||||
|
||||
insert_iterator_by_trait i1 = c1.begin();
|
||||
*i1-- = source();
|
||||
sink(c1); // $ ast MISSING: ir
|
||||
sink(c1); // $ MISSING: ir
|
||||
|
||||
insert_iterator_by_trait i2 = c2.begin();
|
||||
*i2-- = 0;
|
||||
@@ -101,12 +101,12 @@ void test_assign_through_iterator() {
|
||||
a = c1.begin();
|
||||
b = c1.begin();
|
||||
*a = source();
|
||||
sink(a); // $ ast MISSING: ir
|
||||
sink(a); // $ MISSING: ir
|
||||
|
||||
c = c1.begin();
|
||||
sink(b); // MISSING: ast,ir
|
||||
sink(c); // $ ast MISSING: ir
|
||||
sink(c1); // $ ast MISSING: ir
|
||||
sink(b); // MISSING: ir
|
||||
sink(c); // $ MISSING: ir
|
||||
sink(c1); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_nonmember_iterator() {
|
||||
@@ -118,6 +118,6 @@ void test_nonmember_iterator() {
|
||||
it += 1;
|
||||
sink(it);
|
||||
it += source();
|
||||
sink(it); // $ ast,ir
|
||||
sink(it); // $ ir
|
||||
sink(c1);
|
||||
}
|
||||
|
||||
@@ -26,24 +26,24 @@ void test_string()
|
||||
std::string b("123");
|
||||
std::string c(source());
|
||||
|
||||
sink(a); // $ ast,ir
|
||||
sink(a); // $ ir
|
||||
sink(b);
|
||||
sink(c); // $ ast,ir
|
||||
sink(c); // $ MISSING: ir
|
||||
sink(b.c_str());
|
||||
sink(c.c_str()); // $ ast,ir
|
||||
sink(c.c_str()); // $ ir
|
||||
}
|
||||
|
||||
void test_strings2()
|
||||
{
|
||||
string path1 = user_input();
|
||||
sink(path1.c_str(), "r"); // $ ast,ir
|
||||
sink(path1.c_str(), "r"); // $ ir
|
||||
|
||||
string path2;
|
||||
path2 = user_input();
|
||||
sink(path2.c_str(), "r"); // $ ast,ir
|
||||
sink(path2.c_str(), "r"); // $ ir
|
||||
|
||||
string path3(user_input());
|
||||
sink(path3.c_str(), "r"); // $ ast,ir
|
||||
sink(path3.c_str(), "r"); // $ ir
|
||||
}
|
||||
|
||||
void test_string3()
|
||||
@@ -53,8 +53,8 @@ void test_string3()
|
||||
// convert char * -> std::string
|
||||
std::string ss(cs);
|
||||
|
||||
sink(cs); // $ ast,ir
|
||||
sink(ss); // $ ast,ir
|
||||
sink(cs); // $ ir
|
||||
sink(ss); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_string4()
|
||||
@@ -67,8 +67,8 @@ void test_string4()
|
||||
// convert back std::string -> char *
|
||||
cs = ss.c_str();
|
||||
|
||||
sink(cs); // $ ast,ir
|
||||
sink(ss); // $ ast,ir
|
||||
sink(cs); // $ ir
|
||||
sink(ss); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_string_constructors_assignments()
|
||||
@@ -90,9 +90,9 @@ void test_string_constructors_assignments()
|
||||
std::string s3;
|
||||
s3 = source();
|
||||
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s3); // $ ast,ir
|
||||
sink(s1); // $ MISSING: ir
|
||||
sink(s2); // $ MISSING: ir
|
||||
sink(s3); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -111,28 +111,28 @@ void test_string_constructors_assignments()
|
||||
std::string s2;
|
||||
s2 = std::string(source());
|
||||
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s1); // $ MISSING: ir
|
||||
sink(s2); // $ MISSING: ir
|
||||
}
|
||||
}
|
||||
|
||||
void test_range_based_for_loop_string() {
|
||||
std::string s(source());
|
||||
for(char c : s) {
|
||||
sink(c); // $ ast,ir
|
||||
sink(c); // $ ir
|
||||
}
|
||||
|
||||
for(std::string::iterator it = s.begin(); it != s.end(); ++it) {
|
||||
sink(*it); // $ ast,ir
|
||||
sink(*it); // $ ir
|
||||
}
|
||||
|
||||
for(char& c : s) {
|
||||
sink(c); // $ ast,ir
|
||||
sink(c); // $ ir
|
||||
}
|
||||
|
||||
const std::string const_s(source());
|
||||
for(const char& c : const_s) {
|
||||
sink(c); // $ ast,ir
|
||||
sink(c); // $ ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,12 +142,12 @@ void test_string_append() {
|
||||
std::string s2(source());
|
||||
|
||||
sink(s1 + s1);
|
||||
sink(s1 + s2); // $ ast,ir
|
||||
sink(s2 + s1); // $ ast,ir
|
||||
sink(s2 + s2); // $ ast,ir
|
||||
sink(s1 + s2); // $ ir
|
||||
sink(s2 + s1); // $ ir
|
||||
sink(s2 + s2); // $ ir
|
||||
|
||||
sink(s1 + " world");
|
||||
sink(s1 + source()); // $ ast,ir
|
||||
sink(s1 + source()); // $ ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -156,25 +156,25 @@ void test_string_append() {
|
||||
std::string s5, s6, s7, s8, s9;
|
||||
|
||||
s5 = s3 + s4;
|
||||
sink(s5); // $ ast,ir
|
||||
sink(s5); // $ MISSING: ir
|
||||
|
||||
s6 = s3;
|
||||
sink(s6 += s4); // $ ast,ir
|
||||
sink(s6); // $ ast,ir
|
||||
sink(s6 += s4); // $ MISSING: ir
|
||||
sink(s6); // $ MISSING: ir
|
||||
|
||||
s7 = s3;
|
||||
sink(s7 += source()); // $ ast,ir
|
||||
sink(s7 += " "); // $ ast,ir
|
||||
sink(s7); // $ ast,ir
|
||||
sink(s7 += source()); // $ ir
|
||||
sink(s7 += " "); // $ MISSING: ir
|
||||
sink(s7); // $ MISSING: ir
|
||||
|
||||
s8 = s3;
|
||||
s8.append(s4);
|
||||
sink(s8); // $ ast,ir
|
||||
sink(s8); // $ MISSING: ir
|
||||
|
||||
s9 = s3;
|
||||
s9.append(source());
|
||||
s9.append(" ");
|
||||
sink(s9); // $ ast,ir
|
||||
sink(s9); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -182,7 +182,7 @@ void test_string_append() {
|
||||
char c = ns_char::source();
|
||||
|
||||
s10.append(1, c);
|
||||
sink(s10); // $ ast,ir
|
||||
sink(s10); // $ MISSING: ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -196,14 +196,14 @@ void test_string_assign() {
|
||||
sink(s3.assign(s1));
|
||||
sink(s3);
|
||||
|
||||
sink(s4.assign(s2)); // $ ast,ir
|
||||
sink(s4); // $ ast,ir
|
||||
sink(s4.assign(s2)); // $ MISSING: ir
|
||||
sink(s4); // $ MISSING: ir
|
||||
|
||||
sink(s5.assign(10, c)); // $ ast,ir
|
||||
sink(s5); // $ ast,ir
|
||||
sink(s5.assign(10, c)); // $ MISSING: ir
|
||||
sink(s5); // $ MISSING: ir
|
||||
|
||||
sink(s6.assign(s1));
|
||||
sink(s6); // $ SPURIOUS: ast,ir
|
||||
sink(s6); //
|
||||
}
|
||||
|
||||
void test_string_insert() {
|
||||
@@ -217,16 +217,16 @@ void test_string_insert() {
|
||||
sink(s3);
|
||||
|
||||
s4 = s2;
|
||||
sink(s4.insert(0, s1)); // $ ast,ir
|
||||
sink(s4); // $ ast,ir
|
||||
sink(s4.insert(0, s1)); // $ MISSING: ir
|
||||
sink(s4); // $ MISSING: ir
|
||||
|
||||
s5 = s1;
|
||||
sink(s5.insert(0, s2)); // $ ast,ir
|
||||
sink(s5); // $ ast,ir
|
||||
sink(s5.insert(0, s2)); // $ MISSING: ir
|
||||
sink(s5); // $ MISSING: ir
|
||||
|
||||
s6 = s1;
|
||||
sink(s6.insert(0, 10, c)); // $ ast,ir
|
||||
sink(s6); // $ ast,ir
|
||||
sink(s6.insert(0, 10, c)); // $ MISSING: ir
|
||||
sink(s6); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_string_replace() {
|
||||
@@ -240,16 +240,16 @@ void test_string_replace() {
|
||||
sink(s3);
|
||||
|
||||
s4 = s2;
|
||||
sink(s4.replace(1, 2, s1)); // $ ast,ir
|
||||
sink(s4); // $ ast,ir
|
||||
sink(s4.replace(1, 2, s1)); // $ MISSING: ir
|
||||
sink(s4); // $ MISSING: ir
|
||||
|
||||
s5 = s1;
|
||||
sink(s5.replace(1, 2, s2)); // $ ast,ir
|
||||
sink(s5); // $ ast,ir
|
||||
sink(s5.replace(1, 2, s2)); // $ MISSING: ir
|
||||
sink(s5); // $ MISSING: ir
|
||||
|
||||
s6 = s1;
|
||||
sink(s6.replace(1, 2, 10, c)); // $ ast,ir
|
||||
sink(s6); // $ ast,ir
|
||||
sink(s6.replace(1, 2, 10, c)); // $ MISSING: ir
|
||||
sink(s6); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_string_copy() {
|
||||
@@ -262,7 +262,7 @@ void test_string_copy() {
|
||||
sink(b1);
|
||||
|
||||
s2.copy(b2, s1.length(), 0);
|
||||
sink(b2); // $ ast,ir
|
||||
sink(b2); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_string_swap() {
|
||||
@@ -272,17 +272,17 @@ void test_string_swap() {
|
||||
std::string s4(source());
|
||||
|
||||
sink(s1);
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s2); // $ MISSING: ir
|
||||
sink(s3);
|
||||
sink(s4); // $ ast,ir
|
||||
sink(s4); // $ MISSING: ir
|
||||
|
||||
s1.swap(s2);
|
||||
s4.swap(s3);
|
||||
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s2); // $ SPURIOUS: ast,ir
|
||||
sink(s3); // $ ast,ir
|
||||
sink(s4); // $ SPURIOUS: ast,ir
|
||||
sink(s1); // $ MISSING: ir
|
||||
sink(s2);
|
||||
sink(s3); // $ MISSING: ir
|
||||
sink(s4);
|
||||
}
|
||||
|
||||
void test_string_clear() {
|
||||
@@ -290,17 +290,17 @@ void test_string_clear() {
|
||||
std::string s2(source());
|
||||
std::string s3(source());
|
||||
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s3); // $ ast,ir
|
||||
sink(s1); // $ MISSING: ir
|
||||
sink(s2); // $ MISSING: ir
|
||||
sink(s3); // $ MISSING: ir
|
||||
|
||||
s1.clear();
|
||||
s2 = "";
|
||||
s3 = s3;
|
||||
|
||||
sink(s1); // $ SPURIOUS: ast,ir
|
||||
sink(s1);
|
||||
sink(s2);
|
||||
sink(s3); // $ ast,ir
|
||||
sink(s3); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_string_data()
|
||||
@@ -309,7 +309,7 @@ void test_string_data()
|
||||
std::string b(source());
|
||||
|
||||
sink(a.data());
|
||||
sink(b.data()); // $ ast,ir
|
||||
sink(b.data()); // $ MISSING: ir
|
||||
sink(a.length());
|
||||
sink(b.length());
|
||||
}
|
||||
@@ -320,7 +320,7 @@ void test_string_substr()
|
||||
std::string b(source());
|
||||
|
||||
sink(a.substr(0, a.length()));
|
||||
sink(b.substr(0, b.length())); // $ ast,ir
|
||||
sink(b.substr(0, b.length())); // $ ir
|
||||
}
|
||||
|
||||
void test_string_at()
|
||||
@@ -337,9 +337,9 @@ void test_string_at()
|
||||
b.at(0) = ns_char::source();
|
||||
c[0] = a[0];
|
||||
|
||||
sink(a); // $ ast,ir
|
||||
sink(b); // $ ast,ir
|
||||
sink(c); // $ ast,ir
|
||||
sink(a); // $ MISSING: ir
|
||||
sink(b); // $ MISSING: ir
|
||||
sink(c); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_string_data_more()
|
||||
@@ -347,8 +347,8 @@ void test_string_data_more()
|
||||
std::string str("123");
|
||||
|
||||
str.data()[1] = ns_char::source();
|
||||
sink(str); // $ ast,ir
|
||||
sink(str.data()); // $ ast,ir
|
||||
sink(str); // $ MISSING: ir
|
||||
sink(str.data()); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_string_iterators() {
|
||||
@@ -360,8 +360,8 @@ void test_string_iterators() {
|
||||
std::string s4("world");
|
||||
|
||||
sink(s1);
|
||||
sink(s1.append(s2.begin(), s2.end())); // $ ast,ir
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s1.append(s2.begin(), s2.end())); // $ MISSING: ir
|
||||
sink(s1); // $ MISSING: ir
|
||||
|
||||
sink(s3);
|
||||
sink(s3.append(s4.begin(), s4.end()));
|
||||
@@ -379,8 +379,8 @@ void test_string_iterators() {
|
||||
sink(iter1[1]);
|
||||
string::iterator iter2 = s2.begin();
|
||||
|
||||
sink(*iter2); // $ ast,ir
|
||||
sink(iter2[1]); // $ ast,ir
|
||||
sink(*iter2); // $ ir
|
||||
sink(iter2[1]); // $ ir
|
||||
}
|
||||
|
||||
// arithmetic operators
|
||||
@@ -393,33 +393,33 @@ void test_string_iterators() {
|
||||
string::iterator i2 = s2.begin();
|
||||
string::iterator i3, i4, i5, i6, i7, i8, i9, i10, i11;
|
||||
|
||||
sink(*(i2+1)); // $ ast,ir
|
||||
sink(*(i2-1)); // $ ast,ir
|
||||
sink(*(i2+1)); // $ ir
|
||||
sink(*(i2-1)); // $ ir
|
||||
i3 = i2;
|
||||
sink(*(++i3)); // $ ast,ir
|
||||
sink(*(++i3)); // $ ir
|
||||
i4 = i2;
|
||||
sink(*(--i4)); // $ ast,ir
|
||||
sink(*(--i4)); // $ ir
|
||||
i5 = i2;
|
||||
i5++;
|
||||
sink(*i5); // $ ast,ir
|
||||
sink(*i5); // $ ir
|
||||
i6 = i2;
|
||||
i6--;
|
||||
sink(*i6); // $ ast,ir
|
||||
sink(*i6); // $ ir
|
||||
i7 = i2;
|
||||
sink(*(i7+=1)); // $ ast,ir
|
||||
sink(*(i7+=1)); // $ ir
|
||||
i8 = i2;
|
||||
sink(*(i8-=1)); // $ ast,ir
|
||||
sink(*(i8-=1)); // $ ir
|
||||
|
||||
i9 = s2.end();
|
||||
--i9;
|
||||
sink(*i9); // $ ast,ir
|
||||
sink(*i9); // $ ir
|
||||
|
||||
i10 = i2;
|
||||
sink(*(i10++)); // $ ast,ir
|
||||
sink(i10); // $ ast,ir
|
||||
sink(*(i10++)); // $ ir
|
||||
sink(i10); // $ ir
|
||||
i11 = i2;
|
||||
sink(*(i11--)); // $ ast,ir
|
||||
sink(i11); // $ ast,ir
|
||||
sink(*(i11--)); // $ ir
|
||||
sink(i11); // $ ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -433,8 +433,8 @@ void test_string_insert_more()
|
||||
sink(s1.insert(0, cs1));
|
||||
sink(s1);
|
||||
|
||||
sink(s2.insert(0, cs2)); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s2.insert(0, cs2)); // $ MISSING: ir
|
||||
sink(s2); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_string_iterator_methods()
|
||||
@@ -446,8 +446,8 @@ void test_string_iterator_methods()
|
||||
sink(a.insert(a.begin(), 10, 'x'));
|
||||
sink(a);
|
||||
|
||||
sink(b.insert(b.begin(), 10, ns_char::source())); // $ ast,ir
|
||||
sink(b); // $ ast,ir
|
||||
sink(b.insert(b.begin(), 10, ns_char::source())); // $ MISSING: ir
|
||||
sink(b); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -459,11 +459,11 @@ void test_string_iterator_methods()
|
||||
sink(c.insert(c.end(), s1.begin(), s1.end()));
|
||||
sink(c);
|
||||
|
||||
sink(d.insert(d.end(), s2.begin(), s2.end())); // $ ast,ir
|
||||
sink(d); // $ ast,ir
|
||||
sink(d.insert(d.end(), s2.begin(), s2.end())); // $ MISSING: ir
|
||||
sink(d); // $ MISSING: ir
|
||||
|
||||
sink(s2.insert(s2.end(), s1.begin(), s1.end())); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s2.insert(s2.end(), s1.begin(), s1.end())); // $ MISSING: ir
|
||||
sink(s2); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -475,11 +475,11 @@ void test_string_iterator_methods()
|
||||
sink(e.append(s3.begin(), s3.end()));
|
||||
sink(e);
|
||||
|
||||
sink(f.append(s4.begin(), s4.end())); // $ ast,ir
|
||||
sink(f); // $ ast,ir
|
||||
sink(f.append(s4.begin(), s4.end())); // $ MISSING: ir
|
||||
sink(f); // $ MISSING: ir
|
||||
|
||||
sink(s4.append(s3.begin(), s3.end())); // $ ast,ir
|
||||
sink(s4); // $ ast,ir
|
||||
sink(s4.append(s3.begin(), s3.end())); // $ MISSING: ir
|
||||
sink(s4); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -491,11 +491,11 @@ void test_string_iterator_methods()
|
||||
sink(g.assign(s5.cbegin(), s5.cend()));
|
||||
sink(g);
|
||||
|
||||
sink(h.assign(s6.cbegin(), s6.cend())); // $ ast,ir
|
||||
sink(h); // $ ast,ir
|
||||
sink(h.assign(s6.cbegin(), s6.cend())); // $ MISSING: ir
|
||||
sink(h); // $ MISSING: ir
|
||||
|
||||
sink(s6.assign(s5.cbegin(), s5.cend()));
|
||||
sink(s6); // $ SPURIOUS: ast,ir
|
||||
sink(s6);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -508,9 +508,9 @@ void test_string_constructors_more() {
|
||||
std::string s4(s2.begin(), s2.end());
|
||||
|
||||
sink(s1);
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s2); // $ MISSING: ir
|
||||
sink(s3);
|
||||
sink(s4); // $ ast,ir
|
||||
sink(s4); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_string_front_back() {
|
||||
@@ -519,8 +519,8 @@ void test_string_front_back() {
|
||||
sink(a.front());
|
||||
sink(a.back());
|
||||
a.push_back(ns_char::source());
|
||||
sink(a.front()); // $ SPURIOUS: ast,ir
|
||||
sink(a.back()); // $ ast,ir
|
||||
sink(a.front()); // $ SPURIOUS: ir
|
||||
sink(a.back()); // $ ir
|
||||
}
|
||||
|
||||
void test_string_return_assign() {
|
||||
@@ -533,15 +533,15 @@ void test_string_return_assign() {
|
||||
std::string f("ff");
|
||||
|
||||
sink( a += (b += "bb") );
|
||||
sink( c += (d += source()) ); // $ ast,ir
|
||||
sink( (e += "ee") += source() ); // $ ast,ir
|
||||
sink( (f += source()) += "ff" ); // $ ast,ir
|
||||
sink( c += (d += source()) ); // $ MISSING: ir
|
||||
sink( (e += "ee") += source() ); // $ ir
|
||||
sink( (f += source()) += "ff" ); // $ MISSING: ir
|
||||
sink(a);
|
||||
sink(b);
|
||||
sink(c); // $ ast,ir
|
||||
sink(d); // $ ast,ir
|
||||
sink(e); // $ ast,ir
|
||||
sink(f); // $ ast,ir
|
||||
sink(c); // $ MISSING: ir
|
||||
sink(d); // $ MISSING: ir
|
||||
sink(e); // $ MISSING: ir
|
||||
sink(f); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -553,14 +553,14 @@ void test_string_return_assign() {
|
||||
std::string f("ff");
|
||||
|
||||
sink( a.assign(b.assign("bb")) );
|
||||
sink( c.assign(d.assign(source())) ); // $ ast,ir
|
||||
sink( e.assign("ee").assign(source()) ); // $ ast,ir
|
||||
sink( c.assign(d.assign(source())) ); // $ MISSING: ir
|
||||
sink( e.assign("ee").assign(source()) ); // $ MISSING: ir
|
||||
sink( f.assign(source()).assign("ff") );
|
||||
sink(a);
|
||||
sink(b);
|
||||
sink(c); // $ ast,ir
|
||||
sink(d); // $ ast,ir
|
||||
sink(e); // $ ast,ir
|
||||
sink(f); // $ SPURIOUS: ast,ir
|
||||
sink(c); // $ MISSING: ir
|
||||
sink(d); // $ MISSING: ir
|
||||
sink(e); // $ MISSING: ir
|
||||
sink(f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,42 +29,42 @@ void test_stringstream_string(int amount)
|
||||
std::string t(source());
|
||||
|
||||
sink(ss1 << "1234");
|
||||
sink(ss2 << source()); // $ ast,ir
|
||||
sink(ss3 << "123" << source()); // $ ast,ir
|
||||
sink(ss4 << source() << "456"); // $ ast,ir
|
||||
sink(ss5 << t); // $ ast,ir
|
||||
sink(ss2 << source()); // $ ir
|
||||
sink(ss3 << "123" << source()); // $ ir
|
||||
sink(ss4 << source() << "456"); // $ ir
|
||||
sink(ss5 << t); // $ ir
|
||||
|
||||
sink(ss1);
|
||||
sink(ss2); // $ ast,ir
|
||||
sink(ss3); // $ ast,ir
|
||||
sink(ss4); // $ ast,ir
|
||||
sink(ss5); // $ ast,ir
|
||||
sink(ss2); // $ MISSING: ir
|
||||
sink(ss3); // $ MISSING: ir
|
||||
sink(ss4); // $ MISSING: ir
|
||||
sink(ss5); // $ MISSING: ir
|
||||
sink(ss1.str());
|
||||
sink(ss2.str()); // $ ast,ir
|
||||
sink(ss3.str()); // $ ast,ir
|
||||
sink(ss4.str()); // $ ast,ir
|
||||
sink(ss5.str()); // $ ast,ir
|
||||
sink(ss2.str()); // $ ir
|
||||
sink(ss3.str()); // $ ir
|
||||
sink(ss4.str()); // $ ir
|
||||
sink(ss5.str()); // $ ir
|
||||
|
||||
ss6.str("abc");
|
||||
ss6.str(source()); // (overwrites)
|
||||
ss7.str(source());
|
||||
ss7.str("abc"); // (overwrites)
|
||||
sink(ss6); // $ ast,ir
|
||||
sink(ss7); // $ SPURIOUS: ast,ir
|
||||
sink(ss6); // $ MISSING: ir
|
||||
sink(ss7);
|
||||
|
||||
sink(ss8.put('a'));
|
||||
sink(ss9.put(ns_char::source())); // $ ast,ir
|
||||
sink(ss10.put('a').put(ns_char::source()).put('z')); // $ ast,ir
|
||||
sink(ss9.put(ns_char::source())); // $ MISSING: ir
|
||||
sink(ss10.put('a').put(ns_char::source()).put('z')); // $ ir
|
||||
sink(ss8);
|
||||
sink(ss9); // $ ast,ir
|
||||
sink(ss10); // $ ast,ir
|
||||
sink(ss9); // $ MISSING: ir
|
||||
sink(ss10); // $ MISSING: ir
|
||||
|
||||
sink(ss11.write("begin", 5));
|
||||
sink(ss12.write(source(), 5)); // $ ast,ir
|
||||
sink(ss13.write("begin", 5).write(source(), amount).write("end", 3)); // $ ast,ir
|
||||
sink(ss12.write(source(), 5)); // $ MISSING: ir
|
||||
sink(ss13.write("begin", 5).write(source(), amount).write("end", 3)); // $ ir
|
||||
sink(ss11);
|
||||
sink(ss12); // $ ast,ir
|
||||
sink(ss13); // $ ast,ir
|
||||
sink(ss12); // $ MISSING: ir
|
||||
sink(ss13); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_stringstream_int(int source)
|
||||
@@ -73,16 +73,16 @@ void test_stringstream_int(int source)
|
||||
int v1 = 0, v2 = 0;
|
||||
|
||||
sink(ss1 << 1234);
|
||||
sink(ss2 << source); // $ ast,ir
|
||||
sink(ss2 << source); // $ MISSING: ir
|
||||
sink(ss1 >> v1);
|
||||
sink(ss2 >> v2); // $ ast,ir
|
||||
sink(ss2 >> v2); // $ ir
|
||||
|
||||
sink(ss1);
|
||||
sink(ss2); // $ ast,ir
|
||||
sink(ss2); // $ MISSING: ir
|
||||
sink(ss1.str());
|
||||
sink(ss2.str()); // $ ast,ir
|
||||
sink(ss2.str()); // $ ir
|
||||
sink(v1);
|
||||
sink(v2); // $ ast,ir
|
||||
sink(v2); // $ ir
|
||||
}
|
||||
|
||||
void test_stringstream_constructors()
|
||||
@@ -97,14 +97,14 @@ void test_stringstream_constructors()
|
||||
std::stringstream ss6;
|
||||
|
||||
sink(ss5 = std::stringstream("abc"));
|
||||
sink(ss6 = std::stringstream(source())); // $ ast,ir
|
||||
sink(ss6 = std::stringstream(source())); // $ MISSING: ir
|
||||
|
||||
sink(ss1);
|
||||
sink(ss2); // $ ast,ir
|
||||
sink(ss2); // $ MISSING: ir
|
||||
sink(ss3);
|
||||
sink(ss4); // $ ast,ir
|
||||
sink(ss4); // $ MISSING: ir
|
||||
sink(ss5);
|
||||
sink(ss6); // $ ast,ir
|
||||
sink(ss6); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_stringstream_swap()
|
||||
@@ -117,10 +117,10 @@ void test_stringstream_swap()
|
||||
ss1.swap(ss2);
|
||||
ss4.swap(ss3);
|
||||
|
||||
sink(ss1); // $ ast,ir
|
||||
sink(ss2); // $ SPURIOUS: ast,ir
|
||||
sink(ss3); // $ ast,ir
|
||||
sink(ss4); // $ SPURIOUS: ast,ir
|
||||
sink(ss1); // $ MISSING: ir
|
||||
sink(ss2);
|
||||
sink(ss3); // $ MISSING: ir
|
||||
sink(ss4);
|
||||
}
|
||||
|
||||
void test_stringstream_in()
|
||||
@@ -140,49 +140,49 @@ void test_stringstream_in()
|
||||
char c1 = 0, c2 = 0, c3 = 0, c4 = 0, c5 = 0, c6 = 0;
|
||||
|
||||
sink(ss1 << "abc");
|
||||
sink(ss2 << source()); // $ ast,ir
|
||||
sink(ss2 << source()); // $ ir
|
||||
|
||||
sink(ss1 >> s1);
|
||||
sink(ss2 >> s2); // $ ast,ir
|
||||
sink(ss2 >> s3 >> s4); // $ ast,ir
|
||||
sink(ss2 >> s2); // $ ir
|
||||
sink(ss2 >> s3 >> s4); // $ ir
|
||||
sink(s1);
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s3); // $ ast,ir
|
||||
sink(s4); // $ ast,ir
|
||||
sink(s2); // $ MISSING: ir
|
||||
sink(s3); // $ MISSING: ir
|
||||
sink(s4); // $ MISSING: ir
|
||||
|
||||
sink(ss1 >> b1);
|
||||
sink(ss2 >> b2); // $ ast,ir
|
||||
sink(ss2 >> b3 >> b4); // $ ast,ir
|
||||
sink(ss2 >> b2); // $ ir
|
||||
sink(ss2 >> b3 >> b4); // $ ir
|
||||
sink(b1);
|
||||
sink(b2); // $ ast,ir
|
||||
sink(b3); // $ ast,ir
|
||||
sink(b4); // $ ast,ir
|
||||
sink(b2); // $ ir
|
||||
sink(b3); // $ ir
|
||||
sink(b4); // $ ir
|
||||
|
||||
sink(ss1.read(b5, 100));
|
||||
sink(ss2.read(b6, 100)); // $ ast,ir
|
||||
sink(ss2.read(b6, 100)); // $ ir
|
||||
sink(ss1.readsome(b7, 100));
|
||||
sink(ss2.readsome(b8, 100)); // (returns a length, not significantly tainted)
|
||||
sink(ss1.get(b9, 100));
|
||||
sink(ss2.get(b10, 100)); // $ ast,ir
|
||||
sink(ss2.get(b10, 100)); // $ ir
|
||||
sink(b5);
|
||||
sink(b6); // $ ast,ir
|
||||
sink(b6); // $ ir
|
||||
sink(b7);
|
||||
sink(b8); // $ ast,ir
|
||||
sink(b8); // $ ir
|
||||
sink(b9);
|
||||
sink(b10); // $ ast,ir
|
||||
sink(b10); // $ ir
|
||||
|
||||
sink(c1 = ss1.get());
|
||||
sink(c2 = ss2.get()); // $ ast,ir
|
||||
sink(c2 = ss2.get()); // $ ir
|
||||
sink(c3 = ss1.peek());
|
||||
sink(c4 = ss2.peek()); // $ ast,ir
|
||||
sink(c4 = ss2.peek()); // $ ir
|
||||
sink(ss1.get(c5));
|
||||
sink(ss2.get(c6)); // $ ast,ir
|
||||
sink(ss2.get(c6)); // $ ir
|
||||
sink(c1);
|
||||
sink(c2); // $ ast,ir
|
||||
sink(c2); // $ ir
|
||||
sink(c3);
|
||||
sink(c4); // $ ast,ir
|
||||
sink(c4); // $ ir
|
||||
sink(c5);
|
||||
sink(c6); // $ ast,ir
|
||||
sink(c6); // $ ir
|
||||
}
|
||||
|
||||
void test_stringstream_putback()
|
||||
@@ -193,8 +193,8 @@ void test_stringstream_putback()
|
||||
sink(ss.get());
|
||||
sink(ss.putback('b'));
|
||||
sink(ss.get());
|
||||
sink(ss.putback(ns_char::source())); // $ ast,ir
|
||||
sink(ss.get()); // $ ast,ir
|
||||
sink(ss.putback(ns_char::source())); // $ MISSING: ir
|
||||
sink(ss.get()); // $ ir
|
||||
}
|
||||
|
||||
void test_getline()
|
||||
@@ -212,44 +212,44 @@ void test_getline()
|
||||
std::string s1, s2, s3, s4, s5, s6, s7, s8;
|
||||
|
||||
sink(ss1.getline(b1, 1000));
|
||||
sink(ss2.getline(b2, 1000)); // $ ast,ir
|
||||
sink(ss2.getline(b3, 1000)); // $ ast,ir
|
||||
sink(ss2.getline(b2, 1000)); // $ ir
|
||||
sink(ss2.getline(b3, 1000)); // $ ir
|
||||
sink(ss1.getline(b3, 1000));
|
||||
sink(b1);
|
||||
sink(b2); // $ ast,ir
|
||||
sink(b3); // $ SPURIOUS: ast,ir
|
||||
sink(b2); // $ ir
|
||||
sink(b3); // $ SPURIOUS: ir
|
||||
|
||||
sink(ss1.getline(b4, 1000, ' '));
|
||||
sink(ss2.getline(b5, 1000, ' ')); // $ ast,ir
|
||||
sink(ss2.getline(b6, 1000, ' ')); // $ ast,ir
|
||||
sink(ss2.getline(b5, 1000, ' ')); // $ ir
|
||||
sink(ss2.getline(b6, 1000, ' ')); // $ ir
|
||||
sink(ss1.getline(b6, 1000, ' '));
|
||||
sink(b4);
|
||||
sink(b5); // $ ast,ir
|
||||
sink(b6); // $ SPURIOUS: ast,ir
|
||||
sink(b5); // $ ir
|
||||
sink(b6); // $ SPURIOUS: ir
|
||||
|
||||
sink(ss2.getline(b7, 1000).getline(b8, 1000)); // $ ast,ir
|
||||
sink(b7); // $ ast,ir
|
||||
sink(b8); // $ ast,ir
|
||||
sink(ss2.getline(b7, 1000).getline(b8, 1000)); // $ ir
|
||||
sink(b7); // $ ir
|
||||
sink(b8); // $ ir
|
||||
|
||||
sink(getline(ss1, s1));
|
||||
sink(getline(ss2, s2)); // $ ast,ir
|
||||
sink(getline(ss2, s3)); // $ ast,ir
|
||||
sink(getline(ss2, s2)); // $ ir
|
||||
sink(getline(ss2, s3)); // $ ir
|
||||
sink(getline(ss1, s3));
|
||||
sink(s1);
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s3); // $ SPURIOUS: ast,ir
|
||||
sink(s2); // $ MISSING: ir
|
||||
sink(s3);
|
||||
|
||||
sink(getline(ss1, s4, ' '));
|
||||
sink(getline(ss2, s5, ' ')); // $ ast,ir
|
||||
sink(getline(ss2, s6, ' ')); // $ ast,ir
|
||||
sink(getline(ss2, s5, ' ')); // $ ir
|
||||
sink(getline(ss2, s6, ' ')); // $ ir
|
||||
sink(getline(ss1, s6, ' '));
|
||||
sink(s4);
|
||||
sink(s5); // $ ast,ir
|
||||
sink(s6); // $ SPURIOUS: ast,ir
|
||||
sink(s5); // $ MISSING: ir
|
||||
sink(s6);
|
||||
|
||||
sink(getline(getline(ss2, s7), s8)); // $ ast,ir
|
||||
sink(s7); // $ ast,ir
|
||||
sink(s8); // $ ast,ir
|
||||
sink(getline(getline(ss2, s7), s8)); // $ ir
|
||||
sink(s7); // $ MISSING: ir
|
||||
sink(s8); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_chaining()
|
||||
@@ -259,10 +259,10 @@ void test_chaining()
|
||||
char b1[1000] = {0};
|
||||
char b2[1000] = {0};
|
||||
|
||||
sink(ss1.get(b1, 100).unget().get(b2, 100)); // $ ast,ir
|
||||
sink(b1); // $ ast,ir
|
||||
sink(b2); // $ ast,ir
|
||||
sink(ss1.get(b1, 100).unget().get(b2, 100)); // $ ir
|
||||
sink(b1); // $ ir
|
||||
sink(b2); // $ ir
|
||||
|
||||
sink(ss2.write("abc", 3).flush().write(source(), 3).flush().write("xyz", 3)); // $ ast,ir
|
||||
sink(ss2); // $ ast,ir
|
||||
sink(ss2.write("abc", 3).flush().write(source(), 3).flush().write("xyz", 3)); // $ ir
|
||||
sink(ss2); // $ MISSING: ir
|
||||
}
|
||||
|
||||
@@ -32,10 +32,10 @@ void test_structlikeclass()
|
||||
StructLikeClass s4;
|
||||
s4 = source();
|
||||
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s3); // $ ast,ir
|
||||
sink(s4); // $ ast,ir
|
||||
sink(s1); // $ ir
|
||||
sink(s2); // $ ir
|
||||
sink(s3); // $ ir
|
||||
sink(s4); // $ ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -57,8 +57,8 @@ void test_structlikeclass()
|
||||
StructLikeClass s3;
|
||||
s2 = StructLikeClass(source());
|
||||
|
||||
sink(s1); // $ ast,ir
|
||||
sink(s2); // $ ast,ir
|
||||
sink(s3 = source()); // $ ast,ir
|
||||
sink(s1); // $ ir
|
||||
sink(s2); // $ ir
|
||||
sink(s3 = source()); // $ ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,22 +70,22 @@ void test_copy_assignment_operator()
|
||||
IntWrapper::Class y;
|
||||
x.data1 = source();
|
||||
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(x.data1); // $ ir
|
||||
sink(y.data1); // clean
|
||||
|
||||
y = x;
|
||||
|
||||
sink(y.data1); // $ ir ast=71:15 SPURIOUS: ast=69:23
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(y.data1); // $ ir
|
||||
sink(x.data1); // $ ir
|
||||
|
||||
IntWrapper::Class z1, z2;
|
||||
z1.data1 = source();
|
||||
sink(z1.data1); // $ ast,ir
|
||||
sink(z1.data1); // $ ir
|
||||
|
||||
swap(z1, z2);
|
||||
|
||||
sink(z2.data1); // $ ast,ir
|
||||
sink(z1.data1); // $ SPURIOUS: ir ast=81:27 ast=82:16
|
||||
sink(z2.data1); // $ ir
|
||||
sink(z1.data1); // $ SPURIOUS: ir
|
||||
}
|
||||
|
||||
void test_move_assignment_operator()
|
||||
@@ -94,13 +94,13 @@ void test_move_assignment_operator()
|
||||
IntWrapper::Class y;
|
||||
x.data1 = source();
|
||||
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(x.data1); // $ ir
|
||||
sink(y.data1); // clean
|
||||
|
||||
y = std::move(x);
|
||||
|
||||
sink(y.data1); // $ ir ast=95:15 SPURIOUS: ast=93:23
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(y.data1); // $ ir
|
||||
sink(x.data1); // $ ir
|
||||
}
|
||||
|
||||
void test_move_constructor()
|
||||
@@ -108,11 +108,11 @@ void test_move_constructor()
|
||||
IntWrapper::Class move_from;
|
||||
move_from.data1 = source();
|
||||
|
||||
sink(move_from.data1); // $ ast,ir
|
||||
sink(move_from.data1); // $ ir
|
||||
|
||||
IntWrapper::Class move_to(std::move(move_from));
|
||||
|
||||
sink(move_to.data1); // $ ir ast=109:23 SPURIOUS: ast=108:23
|
||||
sink(move_to.data1); // $ ir
|
||||
}
|
||||
|
||||
void test_copy_assignment_method()
|
||||
@@ -121,13 +121,13 @@ void test_copy_assignment_method()
|
||||
IntWrapper::Class y;
|
||||
x.data1 = source();
|
||||
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(x.data1); // $ ir
|
||||
sink(y.data1); // clean
|
||||
|
||||
y.copy_assign(x);
|
||||
|
||||
sink(y.data1); // $ ir ast=122:15 SPURIOUS: ast=120:23
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(y.data1); // $ ir
|
||||
sink(x.data1); // $ ir
|
||||
}
|
||||
|
||||
void test_move_assignment_method()
|
||||
@@ -136,13 +136,13 @@ void test_move_assignment_method()
|
||||
IntWrapper::Class y;
|
||||
x.data1 = source();
|
||||
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(x.data1); // $ ir
|
||||
sink(y.data1); // clean
|
||||
|
||||
y.move_assign(std::move(x));
|
||||
|
||||
sink(y.data1); // $ ir ast=137:15 SPURIOUS: ast=135:23
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(y.data1); // $ ir
|
||||
sink(x.data1); // $ ir
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -70,22 +70,22 @@ void test_copy_assignment_operator()
|
||||
IntWrapper::Class y;
|
||||
x.data1 = source();
|
||||
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(x.data1); // $ ir
|
||||
sink(y.data1); // clean
|
||||
|
||||
y = x;
|
||||
|
||||
sink(y.data1); // $ ir ast=71:15 SPURIOUS: ast=69:23
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(y.data1); // $ ir
|
||||
sink(x.data1); // $ ir
|
||||
|
||||
IntWrapper::Class z1, z2;
|
||||
z1.data1 = source();
|
||||
sink(z1.data1); // $ ast,ir
|
||||
sink(z1.data1); // $ ir
|
||||
|
||||
swap(z1, z2);
|
||||
|
||||
sink(z2.data1); // $ ir MISSING: ast
|
||||
sink(z1.data1); // $ SPURIOUS: ir ast=81:27 ast=82:16
|
||||
sink(z2.data1); // $ ir
|
||||
sink(z1.data1); // $ SPURIOUS: ir
|
||||
}
|
||||
|
||||
void test_move_assignment_operator()
|
||||
@@ -94,13 +94,13 @@ void test_move_assignment_operator()
|
||||
IntWrapper::Class y;
|
||||
x.data1 = source();
|
||||
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(x.data1); // $ ir
|
||||
sink(y.data1); // clean
|
||||
|
||||
y = std::move(x);
|
||||
|
||||
sink(y.data1); // $ ir ast=95:15 SPURIOUS: ast=93:23
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(y.data1); // $ ir
|
||||
sink(x.data1); // $ ir
|
||||
}
|
||||
|
||||
void test_move_constructor()
|
||||
@@ -108,11 +108,11 @@ void test_move_constructor()
|
||||
IntWrapper::Class move_from;
|
||||
move_from.data1 = source();
|
||||
|
||||
sink(move_from.data1); // $ ast,ir
|
||||
sink(move_from.data1); // $ ir
|
||||
|
||||
IntWrapper::Class move_to(std::move(move_from));
|
||||
|
||||
sink(move_to.data1); // $ ir ast=109:23 SPURIOUS: ast=108:23
|
||||
sink(move_to.data1); // $ ir
|
||||
}
|
||||
|
||||
void test_copy_assignment_method()
|
||||
@@ -121,13 +121,13 @@ void test_copy_assignment_method()
|
||||
IntWrapper::Class y;
|
||||
x.data1 = source();
|
||||
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(x.data1); // $ ir
|
||||
sink(y.data1); // clean
|
||||
|
||||
y.copy_assign(x);
|
||||
|
||||
sink(y.data1); // $ ir ast=122:15 SPURIOUS: ast=120:23
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(y.data1); // $ ir
|
||||
sink(x.data1); // $ ir
|
||||
}
|
||||
|
||||
void test_move_assignment_method()
|
||||
@@ -136,13 +136,13 @@ void test_move_assignment_method()
|
||||
IntWrapper::Class y;
|
||||
x.data1 = source();
|
||||
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(x.data1); // $ ir
|
||||
sink(y.data1); // clean
|
||||
|
||||
y.move_assign(std::move(x));
|
||||
|
||||
sink(y.data1); // $ ir ast=137:15 SPURIOUS: ast=135:23
|
||||
sink(x.data1); // $ ast,ir
|
||||
sink(y.data1); // $ ir
|
||||
sink(x.data1); // $ ir
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ void arithAssignments(int source1, int clean1) {
|
||||
sink(clean1); // clean
|
||||
clean1 += source1;
|
||||
clean1 += 1;
|
||||
sink(clean1); // $ ast,ir
|
||||
sink(clean1); // $ ir
|
||||
|
||||
clean1 = source1 = 1;
|
||||
sink(clean1); // clean
|
||||
@@ -13,8 +13,8 @@ void arithAssignments(int source1, int clean1) {
|
||||
source1++;
|
||||
++source1;
|
||||
source1 += 1;
|
||||
sink(source1); // $ ast,ir
|
||||
sink(++source1); // $ ast,ir
|
||||
sink(source1); // $ ir
|
||||
sink(++source1); // $ ir
|
||||
}
|
||||
|
||||
// --- globals ---
|
||||
@@ -38,23 +38,23 @@ void do_source()
|
||||
global10 = zero(source());
|
||||
|
||||
sink(global6);
|
||||
sink(global7); // $ ast,ir
|
||||
sink(global8); // $ ast,ir
|
||||
sink(global9); // $ ast,ir
|
||||
sink(global7); // $ ir
|
||||
sink(global8); // $ ir
|
||||
sink(global9); // $ ir
|
||||
sink(global10);
|
||||
}
|
||||
|
||||
void do_sink()
|
||||
{
|
||||
sink(global1);
|
||||
sink(global2); // $ ir MISSING: ast
|
||||
sink(global3); // $ ir MISSING: ast
|
||||
sink(global4); // $ ir MISSING: ast
|
||||
sink(global2); // $ ir
|
||||
sink(global3); // $ ir
|
||||
sink(global4); // $ ir
|
||||
sink(global5);
|
||||
sink(global6);
|
||||
sink(global7); // $ ir MISSING: ast
|
||||
sink(global8); // $ ir MISSING: ast
|
||||
sink(global9); // $ ir MISSING: ast
|
||||
sink(global7); // $ ir
|
||||
sink(global8); // $ ir
|
||||
sink(global9); // $ ir
|
||||
sink(global10);
|
||||
}
|
||||
|
||||
@@ -86,12 +86,12 @@ void class_field_test() {
|
||||
mc1.myMethod();
|
||||
|
||||
sink(mc1.a);
|
||||
sink(mc1.b); // $ ast,ir
|
||||
sink(mc1.c); // $ ast MISSING: ir
|
||||
sink(mc1.d); // $ ast,ir
|
||||
sink(mc1.b); // $ ir
|
||||
sink(mc1.c); // $ ir
|
||||
sink(mc1.d); // $ ir
|
||||
sink(mc2.a);
|
||||
sink(mc2.b); // $ ast,ir
|
||||
sink(mc2.c); // $ ast MISSING: ir
|
||||
sink(mc2.b); // $ ir
|
||||
sink(mc2.c); // $ ir
|
||||
sink(mc2.d);
|
||||
}
|
||||
|
||||
@@ -106,10 +106,10 @@ void array_test(int i) {
|
||||
arr2[i] = source();
|
||||
arr3[5] = 0;
|
||||
|
||||
sink(arr1[5]); // $ ast,ir
|
||||
sink(arr1[i]); // $ ast,ir
|
||||
sink(arr2[5]); // $ ast,ir
|
||||
sink(arr2[i]); // $ ast,ir
|
||||
sink(arr1[5]); // $ ir
|
||||
sink(arr1[i]); // $ ir
|
||||
sink(arr2[5]); // $ ir
|
||||
sink(arr2[i]); // $ ir
|
||||
sink(arr3[5]);
|
||||
sink(arr3[i]);
|
||||
}
|
||||
@@ -126,15 +126,15 @@ void pointer_test() {
|
||||
|
||||
*p2 = source();
|
||||
|
||||
sink(*p1); // $ ast,ir
|
||||
sink(*p2); // $ ast,ir
|
||||
sink(*p1); // $ ir
|
||||
sink(*p2); // $ ir
|
||||
sink(*p3);
|
||||
|
||||
p3 = &t1;
|
||||
sink(*p3); // $ ast,ir
|
||||
sink(*p3); // $ ir
|
||||
|
||||
*p3 = 0;
|
||||
sink(*p3); // $ SPURIOUS: ast,ir
|
||||
sink(*p3); // $ SPURIOUS: ir
|
||||
}
|
||||
|
||||
// --- return values ---
|
||||
@@ -148,7 +148,7 @@ int select(int i, int a, int b) {
|
||||
}
|
||||
|
||||
void fn_test(int i) {
|
||||
sink(select(i, 1, source())); // $ ast,ir
|
||||
sink(select(i, 1, source())); // $ ir
|
||||
}
|
||||
|
||||
// --- strings ---
|
||||
@@ -164,13 +164,13 @@ namespace strings
|
||||
char *tainted = source();
|
||||
char buffer[1024] = {0};
|
||||
|
||||
sink(source()); // $ ast,ir
|
||||
sink(tainted); // $ ast,ir
|
||||
sink(source()); // $ ir
|
||||
sink(tainted); // $ ir
|
||||
|
||||
strcpy(buffer, "Hello, ");
|
||||
sink(buffer);
|
||||
strcat(buffer, tainted);
|
||||
sink(buffer); // $ ast,ir
|
||||
sink(buffer); // $ MISSING: ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ namespace strings
|
||||
|
||||
namespace refs {
|
||||
void callee(int *p) {
|
||||
sink(*p); // $ ast,ir
|
||||
sink(*p); // $ ir
|
||||
}
|
||||
|
||||
void caller() {
|
||||
@@ -192,7 +192,7 @@ void *memcpy(void *dest, void *src, int len);
|
||||
void test_memcpy(int *source) {
|
||||
int x;
|
||||
memcpy(&x, source, sizeof(int));
|
||||
sink(x); // $ ast=192:23 ir SPURIOUS: ast=193:6
|
||||
sink(x); // $ ir
|
||||
}
|
||||
|
||||
// --- std::swap ---
|
||||
@@ -207,13 +207,13 @@ void test_swap() {
|
||||
x = source();
|
||||
y = 0;
|
||||
|
||||
sink(x); // $ ast,ir
|
||||
sink(x); // $ ir
|
||||
sink(y); // clean
|
||||
|
||||
std::swap(x, y);
|
||||
|
||||
sink(x); // $ SPURIOUS: ast,ir
|
||||
sink(y); // $ ast,ir
|
||||
sink(x); // $ SPURIOUS: ir
|
||||
sink(y); // $ ir
|
||||
}
|
||||
|
||||
// --- lambdas ---
|
||||
@@ -226,39 +226,39 @@ void test_lambdas()
|
||||
int w = 0;
|
||||
|
||||
auto a = [t, u]() -> int {
|
||||
sink(t); // $ ast,ir
|
||||
sink(t); // $ ir
|
||||
sink(u); // clean
|
||||
return t;
|
||||
};
|
||||
sink(a()); // $ ast,ir
|
||||
sink(a()); // $ ir
|
||||
|
||||
auto b = [&] {
|
||||
sink(t); // $ ast,ir
|
||||
sink(t); // $ ir
|
||||
sink(u); // clean
|
||||
v = source(); // (v is reference captured)
|
||||
};
|
||||
b();
|
||||
sink(v); // $ MISSING: ast,ir
|
||||
sink(v); // $ MISSING: ir
|
||||
|
||||
auto c = [=] {
|
||||
sink(t); // $ ast,ir
|
||||
sink(t); // $ ir
|
||||
sink(u); // clean
|
||||
};
|
||||
c();
|
||||
|
||||
auto d = [](int a, int b) {
|
||||
sink(a); // $ ast,ir
|
||||
sink(a); // $ ir
|
||||
sink(b); // clean
|
||||
};
|
||||
d(t, u);
|
||||
|
||||
auto e = [](int &a, int &b, int &c) {
|
||||
sink(a); // $ ast,ir
|
||||
sink(a); // $ ir
|
||||
sink(b); // clean
|
||||
c = source();
|
||||
};
|
||||
e(t, u, w);
|
||||
sink(w); // $ ast,ir
|
||||
sink(w); // $ ir
|
||||
}
|
||||
|
||||
// --- taint through return value ---
|
||||
@@ -277,7 +277,7 @@ void test_return()
|
||||
y = 0;
|
||||
z = 0;
|
||||
|
||||
sink(t); // $ ast,ir
|
||||
sink(t); // $ ir
|
||||
sink(x);
|
||||
sink(y);
|
||||
sink(z);
|
||||
@@ -286,9 +286,9 @@ void test_return()
|
||||
y = id(id(t));
|
||||
z = id(z);
|
||||
|
||||
sink(t); // $ ast,ir
|
||||
sink(x); // $ ast,ir
|
||||
sink(y); // $ ast,ir
|
||||
sink(t); // $ ir
|
||||
sink(x); // $ ir
|
||||
sink(y); // $ ir
|
||||
sink(z);
|
||||
}
|
||||
|
||||
@@ -334,7 +334,7 @@ void test_outparams()
|
||||
d = 0;
|
||||
e = 0;
|
||||
|
||||
sink(t); // $ ast,ir
|
||||
sink(t); // $ ir
|
||||
sink(a);
|
||||
sink(b);
|
||||
sink(c);
|
||||
@@ -347,11 +347,11 @@ void test_outparams()
|
||||
myAssign4(&d, t);
|
||||
myNotAssign(e, t);
|
||||
|
||||
sink(t); // $ ast,ir
|
||||
sink(a); // $ ast,ir
|
||||
sink(b); // $ ast,ir
|
||||
sink(c); // $ ast,ir
|
||||
sink(d); // $ ast,ir
|
||||
sink(t); // $ ir
|
||||
sink(a); // $ ir
|
||||
sink(b); // $ ir
|
||||
sink(c); // $ ir
|
||||
sink(d); // $ ir
|
||||
sink(e);
|
||||
}
|
||||
|
||||
@@ -371,9 +371,9 @@ void test_strdup(char *source)
|
||||
a = strdup(source);
|
||||
b = strdup("hello, world");
|
||||
c = strndup(source, 100);
|
||||
sink(a); // $ ast,ir
|
||||
sink(a); // $ ir
|
||||
sink(b);
|
||||
sink(c); // $ ast,ir
|
||||
sink(c); // $ ir
|
||||
}
|
||||
|
||||
void test_strndup(int source)
|
||||
@@ -381,7 +381,7 @@ void test_strndup(int source)
|
||||
char *a;
|
||||
|
||||
a = strndup("hello, world", source);
|
||||
sink(a); // $ ast,ir
|
||||
sink(a); // $ ir
|
||||
}
|
||||
|
||||
void test_wcsdup(wchar_t *source)
|
||||
@@ -390,7 +390,7 @@ void test_wcsdup(wchar_t *source)
|
||||
|
||||
a = wcsdup(source);
|
||||
b = wcsdup(L"hello, world");
|
||||
sink(a); // $ ast,ir
|
||||
sink(a); // $ ir
|
||||
sink(b);
|
||||
}
|
||||
|
||||
@@ -401,9 +401,9 @@ void test_strdupa(char *source)
|
||||
a = strdupa(source);
|
||||
b = strdupa("hello, world");
|
||||
c = strndupa(source, 100);
|
||||
sink(a); // $ ast,ir
|
||||
sink(a); // $ ir
|
||||
sink(b);
|
||||
sink(c); // $ ast,ir
|
||||
sink(c); // $ ir
|
||||
}
|
||||
|
||||
void test_strndupa(int source)
|
||||
@@ -411,7 +411,7 @@ void test_strndupa(int source)
|
||||
char *a;
|
||||
|
||||
a = strndupa("hello, world", source);
|
||||
sink(a); // $ ast,ir
|
||||
sink(a); // $ ir
|
||||
}
|
||||
|
||||
// --- qualifiers ---
|
||||
@@ -442,31 +442,31 @@ void test_qualifiers()
|
||||
sink(a);
|
||||
sink(a.getMember());
|
||||
a.setMember(source());
|
||||
sink(a); // $ ast,ir
|
||||
sink(a.getMember()); // $ ast,ir
|
||||
sink(a); // $ ir
|
||||
sink(a.getMember()); // $ ir
|
||||
|
||||
sink(b);
|
||||
sink(b.getMember());
|
||||
b.member = source();
|
||||
sink(b); // $ MISSING: ast,ir
|
||||
sink(b.member); // $ ast,ir
|
||||
sink(b.getMember()); // $ MISSING: ast,ir
|
||||
sink(b); // $ MISSING: ir
|
||||
sink(b.member); // $ ir
|
||||
sink(b.getMember()); // $ MISSING: ir
|
||||
|
||||
c = new MyClass2(0);
|
||||
|
||||
sink(c);
|
||||
sink(c->getMember());
|
||||
c->setMember(source());
|
||||
sink(c); // $ ast,ir
|
||||
sink(c->getMember()); // $ ast,ir
|
||||
sink(c); // $ ir
|
||||
sink(c->getMember()); // $ ir
|
||||
|
||||
delete c;
|
||||
|
||||
sink(d);
|
||||
sink(d.getString());
|
||||
d.setString(strings::source());
|
||||
sink(d); // $ ast,ir
|
||||
sink(d.getString()); // $ ast,ir
|
||||
sink(d); // $ ir
|
||||
sink(d.getString()); // $ ir
|
||||
}
|
||||
|
||||
// --- non-standard swap ---
|
||||
@@ -484,13 +484,13 @@ void test_swop() {
|
||||
x = source();
|
||||
y = 0;
|
||||
|
||||
sink(x); // $ ast,ir
|
||||
sink(x); // $ ir
|
||||
sink(y); // clean
|
||||
|
||||
swop(x, y);
|
||||
|
||||
sink(x); // $ SPURIOUS: ast,ir
|
||||
sink(y); // $ ast,ir
|
||||
sink(x); // $ SPURIOUS: ir
|
||||
sink(y); // $ ir
|
||||
}
|
||||
|
||||
// --- getdelim ---
|
||||
@@ -504,7 +504,7 @@ void test_getdelim(FILE* source1) {
|
||||
size_t n;
|
||||
getdelim(&line, &n, '\n', source1);
|
||||
|
||||
sink(line); // $ ir,ast
|
||||
sink(line); // $ ir
|
||||
}
|
||||
|
||||
// --- strtok ---
|
||||
@@ -514,7 +514,7 @@ char *strtok(char *str, const char *delim);
|
||||
void test_strtok(char *source) {
|
||||
const char* delim = ",.-;:_";
|
||||
char* tokenized = strtok(source, delim);
|
||||
sink(tokenized); // $ ast,ir
|
||||
sink(tokenized); // $ ir
|
||||
sink(delim);
|
||||
}
|
||||
|
||||
@@ -524,13 +524,13 @@ char *_strset(char *str, int c);
|
||||
|
||||
void test_strset_1(char* ptr, char source) {
|
||||
_strset(ptr, source);
|
||||
sink(ptr); // $ SPURIOUS: ast,ir
|
||||
sink(*ptr); // $ ast,ir
|
||||
sink(ptr); // $ SPURIOUS: ir
|
||||
sink(*ptr); // $ ir
|
||||
}
|
||||
|
||||
void test_strset_2(char* source) {
|
||||
_strset(source, 0);
|
||||
sink(source); // $ ast,ir
|
||||
sink(source); // $ ir
|
||||
}
|
||||
|
||||
// --- mempcpy ---
|
||||
@@ -540,7 +540,7 @@ void *mempcpy(void *dest, const void *src, size_t n);
|
||||
void test_mempcpy(int *source) {
|
||||
int x;
|
||||
mempcpy(&x, source, sizeof(int));
|
||||
sink(x); // $ ast=540:24 ir SPURIOUS: ast=541:6
|
||||
sink(x); // $ ir
|
||||
}
|
||||
|
||||
// --- memccpy ---
|
||||
@@ -550,7 +550,7 @@ void *memccpy(void *dest, const void *src, int c, size_t n);
|
||||
void test_memccpy(int *source) {
|
||||
int dest[16];
|
||||
memccpy(dest, source, 42, sizeof(dest));
|
||||
sink(dest); // $ ast=550:24 ir SPURIOUS: ast=551:6
|
||||
sink(dest); // $ MISSING: ir
|
||||
}
|
||||
|
||||
// --- strcat and related functions ---
|
||||
@@ -559,7 +559,7 @@ char* strcat (char*, const char*);
|
||||
|
||||
void test_strcat(char* dest1, char* dest2, char* clean, char* source) {
|
||||
strcat(dest1, source);
|
||||
sink(dest1); // $ ast,ir
|
||||
sink(dest1); // $ ir
|
||||
|
||||
strcat(dest2, clean);
|
||||
sink(dest2);
|
||||
@@ -572,10 +572,10 @@ unsigned char *_mbsncat_l(unsigned char *, const unsigned char *, int, _locale_t
|
||||
void test__mbsncat_l(unsigned char* dest1, unsigned const char* ptr, unsigned char* dest3,
|
||||
_locale_t clean, _locale_t source, int n) {
|
||||
unsigned char* dest2 = _mbsncat_l(dest1, ptr, n, source);
|
||||
sink(dest1); // $ SPURIOUS: ast,ir
|
||||
sink(*dest1); // $ ast,ir
|
||||
sink(dest1); // $ SPURIOUS: ir
|
||||
sink(*dest1); // $ ir
|
||||
sink(dest2); // $ SPURIOUS: ir
|
||||
sink(*dest2); // $ ir
|
||||
sink(*dest2); // $ MISSING: ir
|
||||
|
||||
unsigned char* dest4 = _mbsncat_l(dest3, ptr, n, clean);
|
||||
sink(dest3);
|
||||
@@ -592,8 +592,8 @@ void test_strsep(char *source) {
|
||||
const char* delim = ",.-;:_";
|
||||
char* tokenized;
|
||||
while(tokenized = strsep(&source, delim)) {
|
||||
sink(tokenized); // $ ast,ir
|
||||
sink(*tokenized); // $ ast,ir
|
||||
sink(tokenized); // $ ir
|
||||
sink(*tokenized); // $ ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -605,8 +605,8 @@ unsigned char *_strdec(const unsigned char*, const unsigned char*);
|
||||
|
||||
void test__strinc(char* source, char* clean, char* dest1, char* dest2, _locale_t locale) {
|
||||
dest1 = _strinc(source, locale);
|
||||
sink(dest1); // $ ast,ir
|
||||
sink(*dest1); // $ ast,ir
|
||||
sink(dest1); // $ ir
|
||||
sink(*dest1); // $ ir
|
||||
|
||||
dest2 = _strinc(clean, locale);
|
||||
sink(dest2);
|
||||
@@ -615,29 +615,29 @@ void test__strinc(char* source, char* clean, char* dest1, char* dest2, _locale_t
|
||||
|
||||
void test__mbsinc(unsigned char* source_unsigned, char* source, unsigned char* dest_unsigned, char* dest) {
|
||||
dest_unsigned = _mbsinc(source_unsigned);
|
||||
sink(dest_unsigned); // $ ast,ir
|
||||
sink(*dest_unsigned); // $ ast,ir
|
||||
sink(dest_unsigned); // $ ir
|
||||
sink(*dest_unsigned); // $ ir
|
||||
|
||||
dest = (char*)_mbsinc((unsigned char*)source);
|
||||
sink(dest); // $ ast,ir
|
||||
sink(*dest); // $ ast,ir
|
||||
sink(dest); // $ ir
|
||||
sink(*dest); // $ ir
|
||||
}
|
||||
|
||||
void test__strdec(const unsigned char* source, unsigned char* clean, unsigned char* dest1, unsigned char* dest2, unsigned char* dest3) {
|
||||
dest1 = _strdec(source + 12, source);
|
||||
sink(dest1); // $ ast,ir
|
||||
sink(*dest1); // $ ast,ir
|
||||
sink(dest1); // $ ir
|
||||
sink(*dest1); // $ ir
|
||||
|
||||
// If `clean` does not precede `source` this technically breaks the precondition of _strdec.
|
||||
// We would still like to have taint, though.
|
||||
dest2 = _strdec(clean, source);
|
||||
sink(dest2); // $ ast,ir
|
||||
sink(*dest2); // $ ast,ir
|
||||
sink(dest2); // $ ir
|
||||
sink(*dest2); // $ ir
|
||||
|
||||
// Also breaks the precondition on _strdec.
|
||||
dest3 = _strdec(source, clean);
|
||||
sink(dest3); // $ ast,ir
|
||||
sink(*dest3); // $ ast,ir
|
||||
sink(dest3); // $ ir
|
||||
sink(*dest3); // $ ir
|
||||
}
|
||||
|
||||
// --- strnextc ---
|
||||
@@ -648,7 +648,7 @@ void test__strnextc(const char* source) {
|
||||
unsigned c = 0;
|
||||
do {
|
||||
c = _strnextc(source++);
|
||||
sink(c); // $ ast,ir
|
||||
sink(c); // $ ir
|
||||
} while(c != '\0');
|
||||
c = _strnextc("");
|
||||
sink(c);
|
||||
@@ -665,7 +665,7 @@ public:
|
||||
void test_no_const_member(char* source) {
|
||||
C_no_const_member_function c;
|
||||
memcpy(c.data(), source, 16);
|
||||
sink(c.data()); // $ ast,ir
|
||||
sink(c.data()); // $ ir
|
||||
}
|
||||
|
||||
class C_const_member_function {
|
||||
@@ -677,7 +677,7 @@ public:
|
||||
void test_with_const_member(char* source) {
|
||||
C_const_member_function c;
|
||||
memcpy(c.data(), source, 16);
|
||||
sink(c.data()); // $ ast MISSING: ir
|
||||
sink(c.data()); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void argument_source(void*);
|
||||
@@ -690,7 +690,7 @@ void test_argument_source_field_to_obj() {
|
||||
two_members s;
|
||||
argument_source(s.x);
|
||||
|
||||
sink(s); // $ SPURIOUS: ast
|
||||
sink(s.x); // $ ast,ir
|
||||
sink(s);
|
||||
sink(s.x); // $ ir
|
||||
sink(s.y); // clean
|
||||
}
|
||||
@@ -38,41 +38,6 @@ module TaintModels {
|
||||
}
|
||||
}
|
||||
|
||||
module AstTest {
|
||||
private import semmle.code.cpp.dataflow.TaintTracking
|
||||
private import semmle.code.cpp.models.interfaces.Taint
|
||||
|
||||
/** Common data flow configuration to be used by tests. */
|
||||
class AstTestAllocationConfig extends TaintTracking::Configuration {
|
||||
AstTestAllocationConfig() { this = "ASTTestAllocationConfig" }
|
||||
|
||||
override predicate isSource(DataFlow::Node source) {
|
||||
source.asExpr().(FunctionCall).getTarget().getName() = "source"
|
||||
or
|
||||
source.asParameter().getName().matches("source%")
|
||||
or
|
||||
// Track uninitialized variables
|
||||
exists(source.asUninitialized())
|
||||
or
|
||||
exists(FunctionCall fc |
|
||||
fc.getAnArgument() = source.asDefiningArgument() and
|
||||
fc.getTarget().hasName("argument_source")
|
||||
)
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
exists(FunctionCall call |
|
||||
call.getTarget().getName() = "sink" and
|
||||
sink.asExpr() = call.getAnArgument()
|
||||
)
|
||||
}
|
||||
|
||||
override predicate isSanitizer(DataFlow::Node barrier) {
|
||||
barrier.asExpr().(VariableAccess).getTarget().hasName("sanitizer")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module IRTest {
|
||||
private import semmle.code.cpp.ir.IR
|
||||
private import semmle.code.cpp.ir.dataflow.TaintTracking
|
||||
|
||||
@@ -17,20 +17,20 @@ void test_range_based_for_loop_vector(int source1) {
|
||||
std::vector<int> v(100, source1);
|
||||
|
||||
for(int x : v) {
|
||||
sink(x); // $ ast,ir
|
||||
sink(x); // $ ir
|
||||
}
|
||||
|
||||
for(std::vector<int>::iterator it = v.begin(); it != v.end(); ++it) {
|
||||
sink(*it); // $ ast,ir
|
||||
sink(*it); // $ ir
|
||||
}
|
||||
|
||||
for(int& x : v) {
|
||||
sink(x); // $ ast,ir
|
||||
sink(x); // $ ir
|
||||
}
|
||||
|
||||
const std::vector<int> const_v(100, source1);
|
||||
for(const int& x : const_v) {
|
||||
sink(x); // $ ast,ir
|
||||
sink(x); // $ ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,55 +49,55 @@ void test_element_taint(int x) {
|
||||
sink(v1.back());
|
||||
|
||||
v2[0] = source();
|
||||
sink(v2); // $ ast,ir
|
||||
sink(v2[0]); // $ ast,ir
|
||||
sink(v2[1]); // $ SPURIOUS: ast,ir
|
||||
sink(v2[x]); // $ ast,ir
|
||||
sink(v2); // $ MISSING: ir
|
||||
sink(v2[0]); // $ ir
|
||||
sink(v2[1]); // $ SPURIOUS: ir
|
||||
sink(v2[x]); // $ ir
|
||||
|
||||
v3 = v2;
|
||||
sink(v3); // $ ast,ir
|
||||
sink(v3[0]); // $ ast,ir
|
||||
sink(v3[1]); // $ SPURIOUS: ast,ir
|
||||
sink(v3[x]); // $ ast,ir
|
||||
sink(v3); // $ MISSING: ir
|
||||
sink(v3[0]); // $ ir
|
||||
sink(v3[1]); // $ SPURIOUS: ir
|
||||
sink(v3[x]); // $ ir
|
||||
|
||||
v4[x] = source();
|
||||
sink(v4); // $ ast,ir
|
||||
sink(v4[0]); // $ ast,ir
|
||||
sink(v4[1]); // $ ast,ir
|
||||
sink(v4[x]); // $ ast,ir
|
||||
sink(v4); // $ MISSING: ir
|
||||
sink(v4[0]); // $ ir
|
||||
sink(v4[1]); // $ ir
|
||||
sink(v4[x]); // $ ir
|
||||
|
||||
v5.push_back(source());
|
||||
sink(v5); // $ ast,ir
|
||||
sink(v5.front()); // $ SPURIOUS: ast,ir
|
||||
sink(v5.back()); // $ ast,ir
|
||||
sink(v5); // $ MISSING: ir
|
||||
sink(v5.front()); // $ SPURIOUS: ir
|
||||
sink(v5.back()); // $ ir
|
||||
|
||||
v6.data()[2] = source();
|
||||
sink(v6); // $ ast,ir
|
||||
sink(v6.data()[2]); // $ ast,ir
|
||||
sink(v6); // $ MISSING: ir
|
||||
sink(v6.data()[2]); // $ ir
|
||||
|
||||
|
||||
{
|
||||
std::vector<int>::const_iterator it = v7.begin();
|
||||
v7.insert(it, source());
|
||||
}
|
||||
sink(v7); // $ ast,ir
|
||||
sink(v7.front()); // $ ast,ir
|
||||
sink(v7.back()); // $ SPURIOUS: ast,ir
|
||||
sink(v7); // $ MISSING: ir
|
||||
sink(v7.front()); // $ ir
|
||||
sink(v7.back()); // $ SPURIOUS: ir
|
||||
|
||||
{
|
||||
const std::vector<int> &v8c = v8;
|
||||
std::vector<int>::const_iterator it = v8c.begin();
|
||||
v8.insert(it, 10, ns_int::source());
|
||||
}
|
||||
sink(v8); // $ MISSING: ast,ir
|
||||
sink(v8.front()); // $ MISSING: ast,ir
|
||||
sink(v8.back()); // $ MISSING: ast,ir
|
||||
sink(v8); // $ MISSING: ir
|
||||
sink(v8.front()); // $ MISSING: ir
|
||||
sink(v8.back()); // $ MISSING: ir
|
||||
|
||||
v9.at(x) = source();
|
||||
sink(v9); // $ ast,ir
|
||||
sink(v9.at(0)); // $ ast,ir
|
||||
sink(v9.at(1)); // $ ast,ir
|
||||
sink(v9.at(x)); // $ ast,ir
|
||||
sink(v9); // $ MISSING: ir
|
||||
sink(v9.at(0)); // $ ir
|
||||
sink(v9.at(1)); // $ ir
|
||||
sink(v9.at(x)); // $ ir
|
||||
}
|
||||
|
||||
void test_vector_swap() {
|
||||
@@ -106,18 +106,18 @@ void test_vector_swap() {
|
||||
v1.push_back(source());
|
||||
v4.push_back(source());
|
||||
|
||||
sink(v1); // $ ast,ir
|
||||
sink(v1); // $ MISSING: ir
|
||||
sink(v2);
|
||||
sink(v3);
|
||||
sink(v4); // $ ast,ir
|
||||
sink(v4); // $ MISSING: ir
|
||||
|
||||
v1.swap(v2);
|
||||
v3.swap(v4);
|
||||
|
||||
sink(v1); // $ SPURIOUS: ast,ir
|
||||
sink(v2); // $ ast,ir
|
||||
sink(v3); // $ ast,ir
|
||||
sink(v4); // $ SPURIOUS: ast,ir
|
||||
sink(v1);
|
||||
sink(v2); // $ MISSING: ir
|
||||
sink(v3); // $ MISSING: ir
|
||||
sink(v4);
|
||||
}
|
||||
|
||||
void test_vector_clear() {
|
||||
@@ -127,18 +127,18 @@ void test_vector_clear() {
|
||||
v2.push_back(source());
|
||||
v3.push_back(source());
|
||||
|
||||
sink(v1); // $ ast,ir
|
||||
sink(v2); // $ ast,ir
|
||||
sink(v3); // $ ast,ir
|
||||
sink(v1); // $ MISSING: ir
|
||||
sink(v2); // $ MISSING: ir
|
||||
sink(v3); // $ MISSING: ir
|
||||
sink(v4);
|
||||
|
||||
v1.clear();
|
||||
v2 = v2;
|
||||
v3 = v4;
|
||||
|
||||
sink(v1); // $ SPURIOUS: ast,ir
|
||||
sink(v2); // $ ast,ir
|
||||
sink(v3); // $ ast,ir
|
||||
sink(v1);
|
||||
sink(v2); // $ MISSING: ir
|
||||
sink(v3); // $ MISSING: ir
|
||||
sink(v4);
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ void test_nested_vectors()
|
||||
|
||||
sink(aa[0][0]);
|
||||
aa[0][0] = source();
|
||||
sink(aa[0][0]); // $ ast,ir
|
||||
sink(aa[0][0]); // $ ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -168,7 +168,7 @@ void test_nested_vectors()
|
||||
bb[0].push_back(0);
|
||||
sink(bb[0][0]);
|
||||
bb[0][0] = source();
|
||||
sink(bb[0][0]); // $ ast,ir
|
||||
sink(bb[0][0]); // $ ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -177,7 +177,7 @@ void test_nested_vectors()
|
||||
cc[0].push_back(0);
|
||||
sink(cc[0][0]);
|
||||
cc[0][0] = source();
|
||||
sink(cc[0][0]); // $ ast,ir
|
||||
sink(cc[0][0]); // $ ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -188,7 +188,7 @@ void test_nested_vectors()
|
||||
sink(dd[0].a);
|
||||
sink(dd[0].b);
|
||||
dd[0].a = source();
|
||||
sink(dd[0].a); // $ ir MISSING: ast
|
||||
sink(dd[0].a); // $ MISSING: ir
|
||||
sink(dd[0].b);
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ void test_nested_vectors()
|
||||
ee.vs.push_back(0);
|
||||
sink(ee.vs[0]);
|
||||
ee.vs[0] = source();
|
||||
sink(ee.vs[0]); // $ ast,ir
|
||||
sink(ee.vs[0]); // $ ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -209,7 +209,7 @@ void test_nested_vectors()
|
||||
ff.push_back(mvc);
|
||||
sink(ff[0].vs[0]);
|
||||
ff[0].vs[0] = source();
|
||||
sink(ff[0].vs[0]); // $ ir MISSING: ast
|
||||
sink(ff[0].vs[0]); // $ MISSING: ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -239,8 +239,8 @@ void test_vector_assign() {
|
||||
v3.push_back(source());
|
||||
|
||||
sink(v1);
|
||||
sink(v2); // $ ast,ir
|
||||
sink(v3); // $ ast,ir
|
||||
sink(v2); // $ MISSING: ir
|
||||
sink(v3); // $ MISSING: ir
|
||||
|
||||
{
|
||||
std::vector<int> v4, v5, v6;
|
||||
@@ -255,10 +255,10 @@ void test_vector_assign() {
|
||||
v6.assign(i1, i2);
|
||||
|
||||
sink(v4);
|
||||
sink(v5); // $ ast,ir
|
||||
sink(i1); // $ ast,ir
|
||||
sink(i2); // $ ast,ir
|
||||
sink(v6); // $ ast,ir
|
||||
sink(v5); // $ MISSING: ir
|
||||
sink(i1); // $ MISSING: ir
|
||||
sink(i2); // $ MISSING: ir
|
||||
sink(v6); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -270,9 +270,9 @@ void test_vector_assign() {
|
||||
v8.assign(100, ns_myFloat::source());
|
||||
v9.assign(100, ns_ci_ptr::source());
|
||||
|
||||
sink(v7); // $ ast,ir
|
||||
sink(v8); // $ ast,ir
|
||||
sink(v9); // $ ast,ir
|
||||
sink(v7); // $ MISSING: ir
|
||||
sink(v8); // $ MISSING: ir
|
||||
sink(v9); // $ MISSING: ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -282,14 +282,14 @@ void test_data_more() {
|
||||
std::vector<int> v1, v2;
|
||||
|
||||
v1.push_back(source());
|
||||
sink(v1); // $ ast,ir
|
||||
sink(v1.data()); // $ ast,ir
|
||||
sink(v1.data()[2]); // $ ast,ir
|
||||
sink(v1); // $ MISSING: ir
|
||||
sink(v1.data()); // $ ir
|
||||
sink(v1.data()[2]); // $ ir
|
||||
|
||||
*(v2.data()) = ns_int::source();
|
||||
sink(v2); // $ ast,ir
|
||||
sink(v2.data()); // $ ast,ir
|
||||
sink(v2.data()[2]); // $ ast,ir
|
||||
sink(v2); // $ MISSING: ir
|
||||
sink(v2.data()); // $ ir
|
||||
sink(v2.data()[2]); // $ ir
|
||||
}
|
||||
|
||||
void sink(std::vector<int>::iterator);
|
||||
@@ -305,11 +305,11 @@ void test_vector_insert() {
|
||||
sink(a.insert(a.end(), b.begin(), b.end()));
|
||||
sink(a);
|
||||
|
||||
sink(c.insert(c.end(), d.begin(), d.end())); // $ ast,ir
|
||||
sink(c); // $ ast,ir
|
||||
sink(c.insert(c.end(), d.begin(), d.end())); // $ ir
|
||||
sink(c); // $ MISSING: ir
|
||||
|
||||
sink(d.insert(d.end(), a.begin(), a.end())); // $ ast,ir
|
||||
sink(d); // $ ast,ir
|
||||
sink(d.insert(d.end(), a.begin(), a.end())); // $ ir
|
||||
sink(d); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_vector_constructors_more() {
|
||||
@@ -321,9 +321,9 @@ void test_vector_constructors_more() {
|
||||
std::vector<int> v4(v2.begin(), v2.end());
|
||||
|
||||
sink(v1);
|
||||
sink(v2); // $ ast,ir
|
||||
sink(v2); // $ MISSING: ir
|
||||
sink(v3);
|
||||
sink(v4); // $ ast,ir
|
||||
sink(v4); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void taint_vector_output_iterator(std::vector<int>::iterator iter) {
|
||||
@@ -339,57 +339,57 @@ void test_vector_output_iterator(int b) {
|
||||
|
||||
std::vector<int>::iterator i1 = v1.begin();
|
||||
*i1 = source();
|
||||
sink(v1); // $ ast MISSING: ir
|
||||
sink(v1); // $ MISSING: ir
|
||||
|
||||
for(std::vector<int>::iterator it = v2.begin(); it != v2.end(); ++it) {
|
||||
*it = source();
|
||||
}
|
||||
sink(v2); // $ ast MISSING: ir
|
||||
sink(v2); // $ MISSING: ir
|
||||
|
||||
for(int& x : v3) {
|
||||
x = source();
|
||||
}
|
||||
sink(v3); // $ MISSING: ast,ir
|
||||
sink(v3); // $ MISSING: ir
|
||||
|
||||
for(std::vector<int>::iterator it = v4.begin(); it != v4.end(); ++it) {
|
||||
taint_vector_output_iterator(it);
|
||||
}
|
||||
sink(v4); // $ ast MISSING: ir
|
||||
sink(v4); // $ MISSING: ir
|
||||
|
||||
std::vector<int>::iterator i5 = v5.begin();
|
||||
*i5 = source();
|
||||
sink(v5); // $ ast MISSING: ir
|
||||
sink(v5); // $ MISSING: ir
|
||||
*i5 = 1;
|
||||
sink(v5); // $ ast MISSING: ir
|
||||
sink(v5); // $ MISSING: ir
|
||||
|
||||
std::vector<int>::iterator i6 = v6.begin();
|
||||
*i6 = source();
|
||||
sink(v6); // $ ast MISSING: ir
|
||||
sink(v6); // $ MISSING: ir
|
||||
v6 = std::vector<int>(10);
|
||||
sink(v6); // $ SPURIOUS: ast
|
||||
sink(v6);
|
||||
|
||||
std::vector<int>::iterator i7 = v7.begin();
|
||||
if(b) {
|
||||
*i7 = source();
|
||||
sink(v7); // $ ast MISSING: ir
|
||||
sink(v7); // $ MISSING: ir
|
||||
} else {
|
||||
*i7 = 1;
|
||||
sink(v7);
|
||||
}
|
||||
sink(v7); // $ ast MISSING: ir
|
||||
sink(v7); // $ MISSING: ir
|
||||
|
||||
std::vector<int>::iterator i8 = v8.begin();
|
||||
*i8 = source();
|
||||
sink(v8); // $ ast MISSING: ir
|
||||
sink(v8); // $ MISSING: ir
|
||||
*i8 = 1;
|
||||
sink(v8); // $ SPURIOUS: ast
|
||||
sink(v8);
|
||||
|
||||
std::vector<int>::iterator i9 = v9.begin();
|
||||
|
||||
*i9 = source();
|
||||
taint_vector_output_iterator(i9);
|
||||
|
||||
sink(v9); // $ ast=330:10 SPURIOUS: ast=389:8 MISSING: ir
|
||||
sink(v9); // $ MISSING: ir
|
||||
|
||||
std::vector<int>::iterator i10 = v10.begin();
|
||||
vector_iterator_assign_wrapper(i10, 10);
|
||||
@@ -397,21 +397,21 @@ void test_vector_output_iterator(int b) {
|
||||
|
||||
std::vector<int>::iterator i11 = v11.begin();
|
||||
vector_iterator_assign_wrapper(i11, source());
|
||||
sink(v11); // $ ast MISSING: ir
|
||||
sink(v11); // $ MISSING: ir
|
||||
|
||||
std::vector<int>::iterator i12 = v12.begin();
|
||||
*i12++ = 0;
|
||||
*i12 = source();
|
||||
sink(v12); // $ ast MISSING: ir
|
||||
sink(v12); // $ MISSING: ir
|
||||
|
||||
std::vector<int>::iterator i13 = v13.begin();
|
||||
*i13++ = source();
|
||||
sink(v13); // $ ast MISSING: ir
|
||||
sink(v13); // $ MISSING: ir
|
||||
|
||||
std::vector<int>::iterator i14 = v14.begin();
|
||||
i14++;
|
||||
*i14++ = source();
|
||||
sink(v14); // $ ast MISSING: ir
|
||||
sink(v14); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_vector_inserter(char *source_string) {
|
||||
@@ -419,35 +419,35 @@ void test_vector_inserter(char *source_string) {
|
||||
std::vector<std::string> out;
|
||||
auto it = out.end();
|
||||
*it++ = std::string(source_string);
|
||||
sink(out); // $ ast MISSING: ir
|
||||
sink(out); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
std::vector<std::string> out;
|
||||
auto it = std::back_inserter(out);
|
||||
*it++ = std::string(source_string);
|
||||
sink(out); // $ ast MISSING: ir
|
||||
sink(out); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
std::vector<int> out;
|
||||
auto it = std::back_inserter(out);
|
||||
*it++ = source();
|
||||
sink(out); // $ ast MISSING: ir
|
||||
sink(out); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
std::vector<std::string> out;
|
||||
auto it = std::back_inserter(out);
|
||||
*++it = std::string(source_string);
|
||||
sink(out); // $ ast MISSING: ir
|
||||
sink(out); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
std::vector<int> out;
|
||||
auto it = std::back_inserter(out);
|
||||
*++it = source();
|
||||
sink(out); // $ ast MISSING: ir
|
||||
sink(out); // $ MISSING: ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -470,7 +470,7 @@ void test_vector_memcpy()
|
||||
|
||||
sink(v);
|
||||
memcpy(&v[i], &s, sizeof(int));
|
||||
sink(v); // $ ast,ir
|
||||
sink(v); // $ MISSING: ir
|
||||
}
|
||||
|
||||
{
|
||||
@@ -479,11 +479,11 @@ void test_vector_memcpy()
|
||||
const size_t offs = 10;
|
||||
const size_t len = src.length();
|
||||
|
||||
sink(src); // $ ast,ir
|
||||
sink(src); // $ MISSING: ir
|
||||
sink(cs);
|
||||
memcpy(&cs[offs + 1], src.c_str(), len);
|
||||
sink(src); // $ ast,ir
|
||||
sink(cs); // $ ast,ir
|
||||
sink(src); // $ MISSING: ir
|
||||
sink(cs); // $ MISSING: ir
|
||||
}
|
||||
}
|
||||
|
||||
@@ -491,10 +491,10 @@ void test_vector_emplace() {
|
||||
std::vector<int> v1(10), v2(10);
|
||||
|
||||
v1.emplace_back(source());
|
||||
sink(v1); // $ ast,ir
|
||||
sink(v1); // $ MISSING: ir
|
||||
|
||||
v2.emplace(v2.begin(), source());
|
||||
sink(v2); // $ ast,ir
|
||||
sink(v2); // $ MISSING: ir
|
||||
}
|
||||
|
||||
void test_vector_iterator() {
|
||||
@@ -504,14 +504,14 @@ void test_vector_iterator() {
|
||||
short *ptr;
|
||||
|
||||
sink(as[1]);
|
||||
sink(as[source()]); // $ ast,ir
|
||||
sink(as[source()]); // $ ir
|
||||
|
||||
ptr = as;
|
||||
sink(*ptr);
|
||||
ptr += 1;
|
||||
sink(*ptr);
|
||||
ptr += source();
|
||||
sink(*ptr); // $ ast,ir
|
||||
sink(*ptr); // $ ir
|
||||
sink(as[1]);
|
||||
}
|
||||
|
||||
@@ -521,14 +521,14 @@ void test_vector_iterator() {
|
||||
std::vector<short>::iterator it;
|
||||
|
||||
sink(vs[1]);
|
||||
sink(vs[source()]); // $ MISSING: ast,ir
|
||||
sink(vs[source()]); // $ MISSING: ir
|
||||
|
||||
it = vs.begin();
|
||||
sink(*it);
|
||||
it += 1;
|
||||
sink(*it);
|
||||
it += source();
|
||||
sink(*it); // $ ast,ir
|
||||
sink(*it); // $ ir
|
||||
sink(vs[1]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import semmle.code.cpp.dataflow.internal.FlowVar
|
||||
import semmle.code.cpp.dataflow.old.internal.FlowVar
|
||||
|
||||
from Variable var, VariableAccess va
|
||||
where FlowVar_internal::mayBeUsedUninitialized(var, va)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user