File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
lib/semmle/code/cpp/ir/dataflow/internal
test/library-tests/dataflow/dataflow-tests Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -766,7 +766,8 @@ private predicate sourceVariableIsGlobal(
766
766
sourceVariableHasBaseAndIndex ( sv , base , indirectionIndex ) and
767
767
irVar = base .getIRVariable ( ) and
768
768
irVar .getEnclosingIRFunction ( ) = func and
769
- global = irVar .getAst ( )
769
+ global = irVar .getAst ( ) and
770
+ not irVar instanceof IRDynamicInitializationFlag
770
771
)
771
772
}
772
773
Original file line number Diff line number Diff line change @@ -4,14 +4,6 @@ uniqueType
4
4
uniqueNodeLocation
5
5
missingLocation
6
6
uniqueNodeToString
7
- | test.cpp:632:6:632:24 | Use of x indirection | Node should have one toString but has 2. |
8
- | test.cpp:632:6:632:24 | Use of x#init indirection | Node should have one toString but has 2. |
9
- | test.cpp:637:6:637:24 | Use of x indirection | Node should have one toString but has 2. |
10
- | test.cpp:637:6:637:24 | Use of x#init indirection | Node should have one toString but has 2. |
11
- | test.cpp:663:6:663:24 | Use of s indirection | Node should have one toString but has 2. |
12
- | test.cpp:663:6:663:24 | Use of s#init indirection | Node should have one toString but has 2. |
13
- | test.cpp:669:6:669:24 | Use of s indirection | Node should have one toString but has 2. |
14
- | test.cpp:669:6:669:24 | Use of s#init indirection | Node should have one toString but has 2. |
15
7
missingToString
16
8
parameterCallable
17
9
localFlowIsLocal
You can’t perform that action at this time.
0 commit comments