Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 357109a

Browse files
committed
C#: Use DataFlow3 instead of DataFlow2 in Xml.qll to avoid overlap
`semmle.code.csharp.frameworks.system.Xml` is imported in `LibraryTypeDataFlow.qll`, and therefore part of the default namespace. This means that the use of `DataFlow2` inside `Xml.qll` overlaps with some queries. Bumping to `DataFlow3` resolves the issue.
1 parent 1f432dc commit 357109a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • csharp/ql/src/semmle/code/csharp/frameworks/system

csharp/ql/src/semmle/code/csharp/frameworks/system/Xml.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import csharp
44
private import semmle.code.csharp.frameworks.System
5-
private import semmle.code.csharp.dataflow.DataFlow2
5+
private import semmle.code.csharp.dataflow.DataFlow3
66

77
/** The `System.Xml` namespace. */
88
class SystemXmlNamespace extends Namespace {
@@ -163,7 +163,7 @@ class XmlReaderSettingsCreation extends ObjectCreation {
163163
}
164164
}
165165

166-
private class SettingsDataFlowConfig extends DataFlow2::Configuration {
166+
private class SettingsDataFlowConfig extends DataFlow3::Configuration {
167167
SettingsDataFlowConfig() { this = "SettingsDataFlowConfig" }
168168

169169
override predicate isSource(DataFlow::Node source) {

0 commit comments

Comments
 (0)