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+ < sink-component [sink6] ="field "> </ sink-component >
Original file line number Diff line number Diff line change 1+ import { Input , Component } from '@angular/core' ;
2+
3+ @Component ( {
4+ selector : 'mid-component' ,
5+ templateUrl : './mid.component.html'
6+ } )
7+ export class MidComponent {
8+ @Input ( ) field : string ;
9+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export class SinkComponent {
1111 sink3 : string ;
1212 sink4 : string ;
1313 sink5 : string ;
14+ sink6 : string ;
1415
1516 constructor ( private sanitizer : DomSanitizer ) { }
1617
@@ -20,5 +21,6 @@ export class SinkComponent {
2021 this . sanitizer . bypassSecurityTrustHtml ( this . sink3 ) ;
2122 this . sanitizer . bypassSecurityTrustHtml ( this . sink4 ) ;
2223 this . sanitizer . bypassSecurityTrustHtml ( this . sink5 ) ;
24+ this . sanitizer . bypassSecurityTrustHtml ( this . sink6 ) ;
2325 }
2426}
Original file line number Diff line number Diff line change 1313< div *ngFor ="let element of safeArray ">
1414 < sink-component [sink2] ="element "> </ sink-component >
1515</ div >
16+
17+ < mid-component [field] ="taint "> </ mid-component >
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ pipeClassRef
2222| TestPipe.ts:4:8:9:1 | class T ... ;\\n }\\n} | source.component.html:5:22:5:29 | testPipe |
2323| TestPipe.ts:4:8:9:1 | class T ... ;\\n }\\n} | source.component.html:6:19:6:26 | testPipe |
2424taintFlow
25- | source.component.ts:13:22:13:29 | source() | sink.component.ts:18:48:18:57 | this.sink1 |
26- | source.component.ts:13:22:13:29 | source() | sink.component.ts:21:48:21:57 | this.sink4 |
27- | source.component.ts:13:22:13:29 | source() | sink.component.ts:22:48:22:57 | this.sink5 |
28- | source.component.ts:14:33:14:40 | source() | sink.component.ts:18:48:18:57 | this.sink1 |
25+ | source.component.ts:13:22:13:29 | source() | sink.component.ts:19:48:19:57 | this.sink1 |
26+ | source.component.ts:13:22:13:29 | source() | sink.component.ts:22:48:22:57 | this.sink4 |
27+ | source.component.ts:13:22:13:29 | source() | sink.component.ts:23:48:23:57 | this.sink5 |
28+ | source.component.ts:13:22:13:29 | source() | sink.component.ts:24:48:24:57 | this.sink6 |
29+ | source.component.ts:14:33:14:40 | source() | sink.component.ts:19:48:19:57 | this.sink1 |
You can’t perform that action at this time.
0 commit comments