mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
10 lines
209 B
JavaScript
10 lines
209 B
JavaScript
function test() {
|
|
let taint = source();
|
|
|
|
sink({ ...taint }); // NOT OK
|
|
sink({ f: 'hello', ...taint, g: 'world' }); // NOT OK
|
|
|
|
sink([ ...taint ]); // NOT OK
|
|
sink([ 1, 2, ...taint, 3 ]); // NOT OK
|
|
}
|