File tree Expand file tree Collapse file tree
lib/semmle/code/cpp/ir/dataflow/internal
test/library-tests/dataflow/dataflow-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -766,7 +766,8 @@ private predicate sourceVariableIsGlobal(
766766 sourceVariableHasBaseAndIndex ( sv , base , indirectionIndex ) and
767767 irVar = base .getIRVariable ( ) and
768768 irVar .getEnclosingIRFunction ( ) = func and
769- global = irVar .getAst ( )
769+ global = irVar .getAst ( ) and
770+ not irVar instanceof IRDynamicInitializationFlag
770771 )
771772}
772773
Original file line number Diff line number Diff line change @@ -4,14 +4,6 @@ uniqueType
44uniqueNodeLocation
55missingLocation
66uniqueNodeToString
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. |
157missingToString
168parameterCallable
179localFlowIsLocal
You can’t perform that action at this time.
0 commit comments