File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/Security/CWE-020-ExternalAPIs
test/experimental/dataflow/calls Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ newtype TInterestingExternalApiCall =
8787 } or
8888 TResolvedCall ( DataFlowPrivate:: DataFlowCall call ) {
8989 exists ( call .getLocation ( ) .getFile ( ) .getRelativePath ( ) ) and
90+ exists ( call .getCallable ( ) ) and
9091 not call .getCallable ( ) = any ( SafeExternalApi safe ) .getSafeCallable ( ) and
9192 // ignore calls inside codebase, and ignore calls that are marked as safe. This is
9293 // only needed as long as we extract dependencies. When we stop doing that, all
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ class DataFlowCallTest extends InlineExpectationsTest {
1717 exists ( location .getFile ( ) .getRelativePath ( ) ) and
1818 exists ( DataFlowDispatch:: DataFlowCall call |
1919 location = call .getLocation ( ) and
20- element = call .toString ( )
20+ element = call .toString ( ) and
21+ exists ( call .getCallable ( ) )
2122 |
2223 value = prettyExpr ( call .getNode ( ) .getNode ( ) ) and
2324 tag = "call"
You can’t perform that action at this time.
0 commit comments