File tree Expand file tree Collapse file tree
javascript/ql/test/library-tests/TaintTracking Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ typeInferenceMismatch
7979| sanitizer-guards.js:43:11:43:18 | source() | sanitizer-guards.js:45:8:45:8 | x |
8080| sanitizer-guards.js:43:11:43:18 | source() | sanitizer-guards.js:48:10:48:10 | x |
8181| sanitizer-guards.js:68:11:68:18 | source() | sanitizer-guards.js:75:8:75:8 | x |
82+ | sanitizer-guards.js:79:11:79:18 | source() | sanitizer-guards.js:81:8:81:8 | x |
83+ | sanitizer-guards.js:79:11:79:18 | source() | sanitizer-guards.js:84:10:84:10 | x |
8284| spread.js:2:15:2:22 | source() | spread.js:4:8:4:19 | { ...taint } |
8385| spread.js:2:15:2:22 | source() | spread.js:5:8:5:43 | { f: 'h ... orld' } |
8486| spread.js:2:15:2:22 | source() | spread.js:7:8:7:19 | [ ...taint ] |
Original file line number Diff line number Diff line change @@ -74,3 +74,15 @@ function phi2() {
7474 }
7575 sink ( x ) ; // NOT OK
7676}
77+
78+ function falsy ( ) {
79+ let x = source ( ) ;
80+
81+ sink ( x ) ; // NOT OK
82+
83+ if ( x ) {
84+ sink ( x ) ; // NOT OK
85+ } else {
86+ sink ( x ) ; // OK
87+ }
88+ }
You can’t perform that action at this time.
0 commit comments