File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
go/ql/src/experimental/frameworks Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -605,19 +605,31 @@ module DecompressionBombs {
605
605
none ( )
606
606
}
607
607
}
608
+
609
+ class TheSink extends Sink {
610
+ TheSink ( ) {
611
+ exists ( Method m |
612
+ m .hasQualifiedName ( "github.com/klauspost/compress/s2" , "Reader" ,
613
+ [ "DecodeConcurrent" , "ReadByte" , "Read" ] )
614
+ |
615
+ this = m .getACall ( ) .getReceiver ( )
616
+ )
617
+ }
618
+ }
608
619
}
609
620
610
621
/**
611
622
* Provides Decompression Sinks and additional taint steps for `github.com/klauspost/compress/s2` package
612
623
*/
613
624
module KlauspostS2 {
614
- class TheSink extends Sink {
625
+ class TheSink extends DataFlow :: Node {
615
626
TheSink ( ) {
616
627
exists ( Method m |
617
- m .hasQualifiedName ( "github.com/klauspost/compress/s2" , "Reader" ,
618
- [ "DecodeConcurrent" , "ReadByte" , "Read" ] )
628
+ m .getType ( )
629
+ .getUnderlyingType ( )
630
+ .hasQualifiedName ( "github.com/klauspost/compress/s2" , "Reader" )
619
631
|
620
- this = m .getACall ( ) . getReceiver ( )
632
+ this = m .getACall ( )
621
633
)
622
634
}
623
635
}
You can’t perform that action at this time.
0 commit comments