mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
Apply suggestions from code review
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
@@ -46,7 +46,7 @@ class OnActivityResultIncomingIntent extends DataFlow::Node {
|
||||
.getDeclaringType()
|
||||
.hasQualifiedName(["android.app", "android.support.v4.app", "androidx.fragment.app"],
|
||||
"FragmentTransaction") and
|
||||
any(Argument arg | arg = ma.getAnArgument()).getType() = startingType
|
||||
ma.getAnArgument().getType() = startingType
|
||||
or
|
||||
ma.getMethod().hasName("show") and
|
||||
ma.getMethod()
|
||||
|
||||
@@ -3,7 +3,7 @@ import semmle.code.java.dataflow.FlowSources
|
||||
import TestUtilities.InlineFlowTest
|
||||
|
||||
class SourceValueFlowConf extends DefaultValueFlowConf {
|
||||
override predicate isSource(DataFlow::Node sink) { sink instanceof RemoteFlowSource }
|
||||
override predicate isSource(DataFlow::Node src) { src instanceof RemoteFlowSource }
|
||||
}
|
||||
|
||||
class SourceInlineFlowTest extends InlineFlowTest {
|
||||
|
||||
Reference in New Issue
Block a user