File tree Expand file tree Collapse file tree
javascript/ql/test/library-tests/frameworks/Angular2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { Component } from "@angular/core" ;
1+ import { Component , ElementRef } from "@angular/core" ;
22import { DomSanitizer } from '@angular/platform-browser' ;
33
44@Component ( {
@@ -9,6 +9,7 @@ export class Source {
99 taint : string ;
1010 taintedArray : string [ ] ;
1111 safeArray : string [ ] ;
12+ elementRef : ElementRef ;
1213
1314 constructor ( private sanitizer : DomSanitizer ) {
1415 this . taint = source ( ) ;
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ pipeClassRef
2424taintFlow
2525| inline.component.ts:15:22:15:29 | source() | sink.component.ts:28:48:28:57 | this.sink7 |
2626| inline.component.ts:15:22:15:29 | source() | sink.component.ts:30:48:30:57 | this.sink9 |
27- | source.component.ts:14 :22:14 :29 | source() | TestPipe.ts:6:31:6:35 | value |
28- | source.component.ts:14 :22:14 :29 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
29- | source.component.ts:14 :22:14 :29 | source() | sink.component.ts:25:48:25:57 | this.sink4 |
30- | source.component.ts:14 :22:14 :29 | source() | sink.component.ts:26:48:26:57 | this.sink5 |
31- | source.component.ts:14 :22:14 :29 | source() | sink.component.ts:27:48:27:57 | this.sink6 |
32- | source.component.ts:14 :22:14 :29 | source() | sink.component.ts:29:48:29:57 | this.sink8 |
33- | source.component.ts:14 :22:14 :29 | source() | source.component.ts:20 :48:20 :48 | x |
34- | source.component.ts:15 :33:15 :40 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
27+ | source.component.ts:15 :22:15 :29 | source() | TestPipe.ts:6:31:6:35 | value |
28+ | source.component.ts:15 :22:15 :29 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
29+ | source.component.ts:15 :22:15 :29 | source() | sink.component.ts:25:48:25:57 | this.sink4 |
30+ | source.component.ts:15 :22:15 :29 | source() | sink.component.ts:26:48:26:57 | this.sink5 |
31+ | source.component.ts:15 :22:15 :29 | source() | sink.component.ts:27:48:27:57 | this.sink6 |
32+ | source.component.ts:15 :22:15 :29 | source() | sink.component.ts:29:48:29:57 | this.sink8 |
33+ | source.component.ts:15 :22:15 :29 | source() | source.component.ts:21 :48:21 :48 | x |
34+ | source.component.ts:16 :33:16 :40 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
3535testAttrSourceLocation
3636| inline.component.ts:8:43:8:60 | [testAttr]=taint | inline.component.ts:8:55:8:59 | <toplevel> |
You can’t perform that action at this time.
0 commit comments