mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
JS: Support for dynamic args to flow summaries
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
| library-tests/FlowSummary/tst.js:278 | expected an alert, but found none | NOT OK | ConsistencyConfig |
|
||||
| library-tests/FlowSummary/tst.js:282 | expected an alert, but found none | NOT OK | ConsistencyConfig |
|
||||
| library-tests/FlowSummary/tst.js:283 | expected an alert, but found none | NOT OK | ConsistencyConfig |
|
||||
| library-tests/FlowSummary/tst.js:286 | expected an alert, but found none | NOT OK | ConsistencyConfig |
|
||||
| library-tests/FlowSummary/tst.js:287 | expected an alert, but found none | NOT OK | ConsistencyConfig |
|
||||
| library-tests/FlowSummary/tst.js:290 | expected an alert, but found none | NOT OK | ConsistencyConfig |
|
||||
| library-tests/FlowSummary/tst.js:291 | expected an alert, but found none | NOT OK | ConsistencyConfig |
|
||||
|
||||
@@ -275,19 +275,27 @@ function m18() {
|
||||
const dynamicParam0 = mkSummary("Argument[0..]", "ReturnValue");
|
||||
const dynamicParam1 = mkSummary("Argument[1..]", "ReturnValue");
|
||||
|
||||
sink(staticParam0(...source())); // NOT OK
|
||||
sink(staticParam0("safe", ...source())); // OK
|
||||
sink(staticParam0(...[source()])); // NOT OK
|
||||
sink(staticParam0(...["safe", source()])); // OK
|
||||
sink(staticParam0(...[source(), "safe", ])); // NOT OK
|
||||
sink(staticParam0("safe", ...[source()])); // OK
|
||||
sink(staticParam0(source(), ...["safe"])); // NOT OK
|
||||
|
||||
sink(staticParam1(...source())); // NOT OK
|
||||
sink(staticParam1("safe", ...source())); // NOT OK
|
||||
sink(staticParam1(...[source()])); // OK
|
||||
sink(staticParam1(...["safe", source()])); // NOT OK
|
||||
sink(staticParam1(...[source(), "safe", ])); // OK
|
||||
sink(staticParam1("safe", ...[source()])); // NOT OK
|
||||
sink(staticParam1(source(), ...["safe"])); // OK
|
||||
|
||||
sink(dynamicParam0(...source())); // NOT OK
|
||||
sink(dynamicParam0("safe", ...source())); // NOT OK
|
||||
sink(dynamicParam0(...[source()])); // NOT OK
|
||||
sink(dynamicParam0(...["safe", source()])); // NOT OK
|
||||
sink(dynamicParam0(...[source(), "safe", ])); // NOT OK
|
||||
sink(dynamicParam0("safe", ...[source()])); // NOT OK
|
||||
sink(dynamicParam0(source(), ...["safe"])); // NOT OK
|
||||
|
||||
sink(dynamicParam1(...source())); // NOT OK
|
||||
sink(dynamicParam1("safe", ...source())); // NOT OK
|
||||
sink(dynamicParam1(...[source()])); // OK
|
||||
sink(dynamicParam1(...["safe", source()])); // NOT OK
|
||||
sink(dynamicParam1(...[source(), "safe", ])); // OK
|
||||
sink(dynamicParam1("safe", ...[source()])); // NOT OK
|
||||
sink(dynamicParam1(source(), ...["safe"])); // OK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user