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

Skip to content

Commit 0a293cf

Browse files
committed
Add EnumType to SimpleTypeSanitizer
1 parent b6053e3 commit 0a293cf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class SimpleTypeSanitizer extends DataFlow::Node {
2323
this.getType()
2424
.(RefType)
2525
.getASourceSupertype*()
26-
.hasQualifiedName("java.time.temporal", "TemporalAccessor")
26+
.hasQualifiedName("java.time.temporal", "TemporalAccessor") or
27+
this.getType() instanceof EnumType
2728
}
2829
}

0 commit comments

Comments
 (0)