mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
JS: Restrict useSelector steps to local callbacks
This commit is contained in:
@@ -994,7 +994,7 @@ module Redux {
|
||||
override predicate step(DataFlow::Node pred, DataFlow::Node succ) {
|
||||
exists(API::CallNode call |
|
||||
call = useSelector().getACall() and
|
||||
pred = call.getParameter(0).getReturn().asSink() and
|
||||
pred = call.getCallback(0).getReturnNode() and
|
||||
succ = call
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user