mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Added underscore.string test cases for str to array.
This commit is contained in:
@@ -33,3 +33,10 @@ function strToStr() {
|
||||
sink(s.unquote(source("s30"), "quote")); // $ hasTaintFlow=s30
|
||||
sink(s.map(source("s31"), (x) => {return x;})); // $ hasTaintFlow=s31
|
||||
}
|
||||
|
||||
function strToArray() {
|
||||
sink(s.chop(source("s1"), 3)[0]); // $ MISSING: hasTaintFlow=s1
|
||||
sink(s.chars(source("s2")[0])); // $ MISSING: hasTaintFlow=s2
|
||||
sink(s.words(source("s3")[0])); // $ MISSING: hasTaintFlow=s3
|
||||
sink(s.lines(source("s7")[0])); // $ MISSING: hasTaintFlow=s7
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user