mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Fixed map modeling and added test cases.
This commit is contained in:
@@ -122,3 +122,8 @@ function chaining() {
|
||||
return value + source("s21");
|
||||
}).value()); // $ hasTaintFlow=s20 hasTaintFlow=s21
|
||||
}
|
||||
|
||||
function mapTests(){
|
||||
sink(s.map(source("s1"), (x) => {return x + source("s2");})); // $ hasTaintFlow=s1 hasTaintFlow=s2
|
||||
s.map(source("s1"), (x) => { sink(x); return x;}); // $ hasTaintFlow=s1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user