File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
javascript/ql/test/library-tests/TaintTracking Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ consistencyIssue
43
43
| nested-props.js:20 | expected an alert, but found none | NOT OK - but not found | Consistency |
44
44
| stringification-read-steps.js:17 | expected an alert, but found none | NOT OK | Consistency |
45
45
| stringification-read-steps.js:25 | expected an alert, but found none | NOT OK | Consistency |
46
+ | typed-arrays.js:15 | expected an alert, but found none | NOT OK | Consistency |
47
+ | typed-arrays.js:18 | expected an alert, but found none | NOT OK | Consistency |
48
+ | typed-arrays.js:22 | expected an alert, but found none | NOT OK | Consistency |
46
49
flow
47
50
| access-path-sanitizer.js:2:18:2:25 | source() | access-path-sanitizer.js:4:8:4:12 | obj.x |
48
51
| addexpr.js:4:10:4:17 | source() | addexpr.js:7:8:7:8 | x |
Original file line number Diff line number Diff line change @@ -9,4 +9,15 @@ function test() {
9
9
10
10
var arr = new Uint8Array ( y . buffer , y . byteOffset , y . byteLength ) ;
11
11
sink ( arr ) ; // NOT OK
12
+
13
+ const z = new Uint8Array ( [ 1 , 2 , 3 ] ) ;
14
+ z . set ( y , 3 ) ;
15
+ sink ( z ) ; // NOT OK
16
+
17
+ const sub = y . subarray ( 1 , 3 )
18
+ sink ( sub ) ; // NOT OK
19
+
20
+ const clone = new y . constructor ( y . length ) ;
21
+ clone . set ( y ) ;
22
+ sink ( clone ) ; // NOT OK
12
23
}
You can’t perform that action at this time.
0 commit comments