mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
simplify getALibraryInputParameter by adding more general dataflow for the arguments object
This commit is contained in:
@@ -22,6 +22,12 @@ nodes
|
||||
| lib/lib.js:27:10:27:19 | id("safe") |
|
||||
| lib/lib.js:28:13:28:13 | y |
|
||||
| lib/lib.js:28:13:28:13 | y |
|
||||
| lib/lib.js:32:32:32:40 | arguments |
|
||||
| lib/lib.js:32:32:32:40 | arguments |
|
||||
| lib/lib.js:35:1:37:1 | the arguments object of function usedWithArguments |
|
||||
| lib/lib.js:35:28:35:31 | name |
|
||||
| lib/lib.js:36:13:36:16 | name |
|
||||
| lib/lib.js:36:13:36:16 | name |
|
||||
| lib/moduleLib/moduleLib.js:1:28:1:31 | name |
|
||||
| lib/moduleLib/moduleLib.js:1:28:1:31 | name |
|
||||
| lib/moduleLib/moduleLib.js:2:13:2:16 | name |
|
||||
@@ -238,6 +244,11 @@ edges
|
||||
| lib/lib.js:27:6:27:19 | y | lib/lib.js:28:13:28:13 | y |
|
||||
| lib/lib.js:27:6:27:19 | y | lib/lib.js:28:13:28:13 | y |
|
||||
| lib/lib.js:27:10:27:19 | id("safe") | lib/lib.js:27:6:27:19 | y |
|
||||
| lib/lib.js:32:32:32:40 | arguments | lib/lib.js:35:1:37:1 | the arguments object of function usedWithArguments |
|
||||
| lib/lib.js:32:32:32:40 | arguments | lib/lib.js:35:1:37:1 | the arguments object of function usedWithArguments |
|
||||
| lib/lib.js:35:1:37:1 | the arguments object of function usedWithArguments | lib/lib.js:35:28:35:31 | name |
|
||||
| lib/lib.js:35:28:35:31 | name | lib/lib.js:36:13:36:16 | name |
|
||||
| lib/lib.js:35:28:35:31 | name | lib/lib.js:36:13:36:16 | name |
|
||||
| lib/moduleLib/moduleLib.js:1:28:1:31 | name | lib/moduleLib/moduleLib.js:2:13:2:16 | name |
|
||||
| lib/moduleLib/moduleLib.js:1:28:1:31 | name | lib/moduleLib/moduleLib.js:2:13:2:16 | name |
|
||||
| lib/moduleLib/moduleLib.js:1:28:1:31 | name | lib/moduleLib/moduleLib.js:2:13:2:16 | name |
|
||||
@@ -428,6 +439,7 @@ edges
|
||||
| lib/indirect.js:2:5:2:17 | /k*h/.test(x) | lib/indirect.js:1:32:1:32 | x | lib/indirect.js:2:16:2:16 | x | This $@ that depends on $@ may run slow on strings with many repetitions of 'k'. | lib/indirect.js:2:6:2:7 | k* | regular expression | lib/indirect.js:1:32:1:32 | x | library input |
|
||||
| lib/lib.js:4:2:4:18 | regexp.test(name) | lib/lib.js:3:28:3:31 | name | lib/lib.js:4:14:4:17 | name | This $@ that depends on $@ may run slow on strings with many repetitions of 'a'. | lib/lib.js:1:15:1:16 | a* | regular expression | lib/lib.js:3:28:3:31 | name | library input |
|
||||
| lib/lib.js:8:2:8:17 | /f*g/.test(name) | lib/lib.js:7:19:7:22 | name | lib/lib.js:8:13:8:16 | name | This $@ that depends on $@ may run slow on strings with many repetitions of 'f'. | lib/lib.js:8:3:8:4 | f* | regular expression | lib/lib.js:7:19:7:22 | name | library input |
|
||||
| lib/lib.js:36:2:36:17 | /f*g/.test(name) | lib/lib.js:32:32:32:40 | arguments | lib/lib.js:36:13:36:16 | name | This $@ that depends on $@ may run slow on strings with many repetitions of 'f'. | lib/lib.js:36:3:36:4 | f* | regular expression | lib/lib.js:32:32:32:40 | arguments | library input |
|
||||
| lib/moduleLib/moduleLib.js:2:2:2:17 | /a*b/.test(name) | lib/moduleLib/moduleLib.js:1:28:1:31 | name | lib/moduleLib/moduleLib.js:2:13:2:16 | name | This $@ that depends on $@ may run slow on strings with many repetitions of 'a'. | lib/moduleLib/moduleLib.js:2:3:2:4 | a* | regular expression | lib/moduleLib/moduleLib.js:1:28:1:31 | name | library input |
|
||||
| lib/otherLib/js/src/index.js:2:2:2:17 | /a*b/.test(name) | lib/otherLib/js/src/index.js:1:28:1:31 | name | lib/otherLib/js/src/index.js:2:13:2:16 | name | This $@ that depends on $@ may run slow on strings with many repetitions of 'a'. | lib/otherLib/js/src/index.js:2:3:2:4 | a* | regular expression | lib/otherLib/js/src/index.js:1:28:1:31 | name | library input |
|
||||
| lib/snapdragon.js:7:15:7:32 | this.match(/aa*$/) | lib/snapdragon.js:3:34:3:38 | input | lib/snapdragon.js:7:15:7:18 | this | This $@ that depends on $@ may run slow on strings starting with 'a' and with many repetitions of 'a'. | lib/snapdragon.js:7:28:7:29 | a* | regular expression | lib/snapdragon.js:3:34:3:38 | input | library input |
|
||||
|
||||
@@ -33,7 +33,7 @@ module.exports.useArguments = function () {
|
||||
}
|
||||
|
||||
function usedWithArguments(name) {
|
||||
/f*g/.test(name); // NOT OK - bit not yet recognized [INCONSITENCY]
|
||||
/f*g/.test(name); // NOT OK
|
||||
}
|
||||
|
||||
module.exports.snapdragon = require("./snapdragon")
|
||||
Reference in New Issue
Block a user