Skip to content

Commit 55550e7

Browse files
authored
Merge pull request #11941 from alexrford/summary-component-tostring-syntheticglobal
Add missing toString case for synthetic globals
2 parents 1ee9957 + e4df1f5 commit 55550e7

File tree

6 files changed

+30
-0
lines changed

6 files changed

+30
-0
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ module Public {
3939
)
4040
or
4141
exists(ReturnKind rk | this = TReturnSummaryComponent(rk) and result = "return (" + rk + ")")
42+
or
43+
exists(SummaryComponent::SyntheticGlobal sg |
44+
this = TSyntheticGlobalSummaryComponent(sg) and
45+
result = "synthetic global (" + sg + ")"
46+
)
4247
}
4348
}
4449

go/ql/lib/semmle/go/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ module Public {
3939
)
4040
or
4141
exists(ReturnKind rk | this = TReturnSummaryComponent(rk) and result = "return (" + rk + ")")
42+
or
43+
exists(SummaryComponent::SyntheticGlobal sg |
44+
this = TSyntheticGlobalSummaryComponent(sg) and
45+
result = "synthetic global (" + sg + ")"
46+
)
4247
}
4348
}
4449

java/ql/lib/semmle/code/java/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ module Public {
3939
)
4040
or
4141
exists(ReturnKind rk | this = TReturnSummaryComponent(rk) and result = "return (" + rk + ")")
42+
or
43+
exists(SummaryComponent::SyntheticGlobal sg |
44+
this = TSyntheticGlobalSummaryComponent(sg) and
45+
result = "synthetic global (" + sg + ")"
46+
)
4247
}
4348
}
4449

python/ql/lib/semmle/python/dataflow/new/internal/FlowSummaryImpl.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ module Public {
3939
)
4040
or
4141
exists(ReturnKind rk | this = TReturnSummaryComponent(rk) and result = "return (" + rk + ")")
42+
or
43+
exists(SummaryComponent::SyntheticGlobal sg |
44+
this = TSyntheticGlobalSummaryComponent(sg) and
45+
result = "synthetic global (" + sg + ")"
46+
)
4247
}
4348
}
4449

ruby/ql/lib/codeql/ruby/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ module Public {
3939
)
4040
or
4141
exists(ReturnKind rk | this = TReturnSummaryComponent(rk) and result = "return (" + rk + ")")
42+
or
43+
exists(SummaryComponent::SyntheticGlobal sg |
44+
this = TSyntheticGlobalSummaryComponent(sg) and
45+
result = "synthetic global (" + sg + ")"
46+
)
4247
}
4348
}
4449

swift/ql/lib/codeql/swift/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ module Public {
3939
)
4040
or
4141
exists(ReturnKind rk | this = TReturnSummaryComponent(rk) and result = "return (" + rk + ")")
42+
or
43+
exists(SummaryComponent::SyntheticGlobal sg |
44+
this = TSyntheticGlobalSummaryComponent(sg) and
45+
result = "synthetic global (" + sg + ")"
46+
)
4247
}
4348
}
4449

0 commit comments

Comments
 (0)