mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
autoformat
This commit is contained in:
@@ -19,10 +19,14 @@ class Configuration extends TaintTracking::Configuration {
|
||||
) and
|
||||
prop = "bar"
|
||||
}
|
||||
|
||||
|
||||
// calling .copy("foo", "bar") actually moves a property from "foo" to "bar".
|
||||
override predicate isAdditionalLoadStoreStep(DataFlow::Node pred, DataFlow::Node succ, string loadProp, string storeProp) {
|
||||
exists(DataFlow::MethodCallNode call | call.getMethodName() = "copy" and call = succ and pred = call.getReceiver() |
|
||||
override predicate isAdditionalLoadStoreStep(
|
||||
DataFlow::Node pred, DataFlow::Node succ, string loadProp, string storeProp
|
||||
) {
|
||||
exists(DataFlow::MethodCallNode call |
|
||||
call.getMethodName() = "copy" and call = succ and pred = call.getReceiver()
|
||||
|
|
||||
call.getArgument(0).mayHaveStringValue(loadProp) and
|
||||
call.getArgument(1).mayHaveStringValue(storeProp)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user