JS: removed unnecessary getALocalSource from ArrayCallBackDataTaintStep

This commit is contained in:
Napalys
2024-11-20 14:54:06 +01:00
parent 28ead4011a
commit 9dbf7d1828

View File

@@ -505,7 +505,7 @@ private module ArrayLibraries {
override predicate step(DataFlow::Node obj, DataFlow::Node element) {
exists(DataFlow::MethodCallNode call |
call.getMethodName() = ["findLast", "find", "findLastIndex"] and
obj = call.getReceiver().getALocalSource() and
obj = call.getReceiver() and
element = call.getCallback(0).getParameter(0)
)
}