Skip to content

Commit b8c8006

Browse files
committed
add an extended Class of string for FlowState
1 parent 7af4b8d commit b8c8006

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
import go
22

33
module DecompressionBombs {
4-
class FlowState = DataFlow::FlowState;
4+
class FlowState extends string {
5+
FlowState() {
6+
this =
7+
[
8+
"ZstdNewReader", "XzNewReader", "GzipNewReader", "S2NewReader", "SnapyNewReader",
9+
"ZlibNewReader", "FlateNewReader", "Bzip2NewReader", "ZipOpenReader", "ZipKlauspost", ""
10+
]
11+
}
12+
}
513

614
/**
715
* The additional taint steps that need for creating taint tracking or dataflow.

0 commit comments

Comments
 (0)