mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
add local flow when recognizing Object.assign calls for library-inputs
This commit is contained in:
@@ -200,7 +200,9 @@ private DataFlow::Node getAValueExportedByPackage() {
|
||||
or
|
||||
// Object.assign and friends
|
||||
exists(ExtendCall assign |
|
||||
getAValueExportedByPackage() = [assign, assign.getDestinationOperand()] and
|
||||
getAValueExportedByPackage() =
|
||||
[assign, assign.getDestinationOperand(), assign.getDestinationOperand().getALocalSource()]
|
||||
|
|
||||
result = assign.getASourceOperand()
|
||||
)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user