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

Skip to content

Commit f533636

Browse files
committed
C#: Remove taint when it flows via a primitive/simple type (as is the case for java).
1 parent a7c0113 commit f533636

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

csharp/ql/src/utils/model-generator/internal/CaptureModelsSpecific.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ predicate asPartialModel = DataFlowPrivate::Csv::asPartialModel/1;
6666
* Holds for type `t` for fields that are relevant as an intermediate
6767
* read or write step in the data flow analysis.
6868
*/
69-
predicate isRelevantType(CS::Type t) { not t instanceof CS::Enum }
69+
predicate isRelevantType(CS::Type t) {
70+
not t instanceof CS::SimpleType and
71+
not t instanceof CS::Enum
72+
}
7073

7174
/**
7275
* Gets the CSV string representation of the qualifier.

0 commit comments

Comments
 (0)