Skip to content

Commit 737f3e8

Browse files
committed
fix stubs
1 parent 2cb0afe commit 737f3e8

File tree

5 files changed

+414
-399
lines changed

5 files changed

+414
-399
lines changed

go/ql/src/experimental/frameworks/DecompressionBombs.qll

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -605,31 +605,19 @@ module DecompressionBombs {
605605
none()
606606
}
607607
}
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-
}
619608
}
620609

621610
/**
622611
* Provides decompression bomb sinks and additional flow steps for `github.com/klauspost/compress/s2` package
623612
*/
624613
module KlauspostS2 {
625-
class TheSink extends DataFlow::Node {
614+
class TheSink extends Sink {
626615
TheSink() {
627616
exists(Method m |
628-
m.getType()
629-
.getUnderlyingType()
630-
.hasQualifiedName("github.com/klauspost/compress/s2", "Reader")
617+
m.hasQualifiedName("github.com/klauspost/compress/s2", "Reader",
618+
["DecodeConcurrent", "ReadByte", "Read"])
631619
|
632-
this = m.getACall()
620+
this = m.getACall().getReceiver()
633621
)
634622
}
635623
}

0 commit comments

Comments
 (0)