Skip to content

Commit 024712c

Browse files
committed
C#: Temporarily comment out considering Enums as having a sanitizing effect.
1 parent 1d81c77 commit 024712c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/ql/lib/semmle/code/csharp/security/Sanitizers.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class SimpleTypeSanitizedExpr extends DataFlow::ExprNode {
5757
SimpleTypeSanitizedExpr() {
5858
exists(Type t | t = this.getType() or t = this.getType().(NullableType).getUnderlyingType() |
5959
t instanceof SimpleType or
60-
t instanceof SystemDateTimeStruct or
61-
t instanceof Enum
60+
t instanceof SystemDateTimeStruct
61+
// or t instanceof Enum
6262
)
6363
}
6464
}

0 commit comments

Comments
 (0)