mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
16 lines
472 B
Plaintext
16 lines
472 B
Plaintext
import java
|
|
import semmle.code.java.security.PathSanitizer
|
|
import TestUtilities.InlineFlowTest
|
|
|
|
class PathSanitizerConf extends DefaultTaintFlowConf {
|
|
override predicate isSanitizer(DataFlow::Node sanitizer) {
|
|
sanitizer instanceof PathInjectionSanitizer
|
|
}
|
|
}
|
|
|
|
class Test extends InlineFlowTest {
|
|
override DataFlow::Configuration getValueFlowConfig() { none() }
|
|
|
|
override DataFlow::Configuration getTaintFlowConfig() { result = any(PathSanitizerConf config) }
|
|
}
|