mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
19 lines
573 B
Plaintext
19 lines
573 B
Plaintext
import java
|
|
import TestUtilities.InlineFlowTest
|
|
import semmle.code.java.dataflow.FlowSources
|
|
|
|
class SliceValueFlowConf extends DefaultValueFlowConf {
|
|
override predicate isSource(DataFlow::Node source) {
|
|
super.isSource(source) or source instanceof RemoteFlowSource
|
|
}
|
|
}
|
|
|
|
class SliceTaintFlowConf extends DefaultTaintFlowConf {
|
|
override predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet c) {
|
|
super.allowImplicitRead(node, c)
|
|
or
|
|
isSink(node) and
|
|
c.(DataFlow::SyntheticFieldContent).getField() = "androidx.slice.Slice.action"
|
|
}
|
|
}
|