Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e37ceac

Browse files
committed
merge all query files into one query file
1 parent e0798b2 commit e37ceac

21 files changed

Lines changed: 825 additions & 1167 deletions
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* https://github.com/google/brotli
3+
*/
4+
5+
import cpp
6+
import semmle.code.cpp.ir.dataflow.TaintTracking
7+
import semmle.code.cpp.security.FlowSources
8+
import semmle.code.cpp.commons.File
9+
10+
/**
11+
* A Pointer Variable is used in Flow source
12+
*/
13+
class PointerVar extends VariableAccess {
14+
PointerVar() { this.getType() instanceof PointerType }
15+
}
16+
17+
/**
18+
* A Pointer Variable is used in Flow source
19+
*/
20+
class Uint8Var extends VariableAccess {
21+
Uint8Var() { this.getType() instanceof UInt8_t }
22+
}
23+
24+
/**
25+
* The `BrotliDecoderDecompress` function is used in Flow sink
26+
* Ref: https://www.brotli.org/decode.html#af68
27+
*/
28+
class BrotliDecoderDecompressFunction extends Function {
29+
BrotliDecoderDecompressFunction() { this.hasGlobalName(["BrotliDecoderDecompress"]) }
30+
}
31+
32+
/**
33+
* The `BrotliDecoderDecompressStream` function is used in Flow sink
34+
* Ref: https://www.brotli.org/decode.html#a234
35+
*/
36+
class BrotliDecoderDecompressStreamFunction extends Function {
37+
BrotliDecoderDecompressStreamFunction() { this.hasGlobalName(["BrotliDecoderDecompressStream"]) }
38+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/**
2+
* https://www.sourceware.org/bzip2/manual/manual.html
3+
*/
4+
5+
import cpp
6+
import semmle.code.cpp.ir.dataflow.TaintTracking
7+
import semmle.code.cpp.security.FlowSources
8+
import semmle.code.cpp.commons.File
9+
10+
/**
11+
* A `bz_stream` Variable as a Flow source
12+
*/
13+
class BzStreamVar extends VariableAccess {
14+
BzStreamVar() { this.getType().hasName("bz_stream") }
15+
}
16+
17+
/**
18+
* A `BZFILE` Variable as a Flow source
19+
*/
20+
class BzFileVar extends VariableAccess {
21+
BzFileVar() { this.getType().hasName("BZFILE") }
22+
}
23+
24+
/**
25+
* The `BZ2_bzDecompress` function as a Flow source
26+
*/
27+
class BZ2BzDecompressFunction extends Function {
28+
BZ2BzDecompressFunction() { this.hasGlobalName(["BZ2_bzDecompress"]) }
29+
}
30+
31+
/**
32+
* The `BZ2_bzReadOpen` function
33+
*/
34+
class BZ2BzReadOpenFunction extends Function {
35+
BZ2BzReadOpenFunction() { this.hasGlobalName(["BZ2_bzReadOpen"]) }
36+
}
37+
38+
/**
39+
* The `BZ2_bzRead` function is used in Flow sink
40+
*/
41+
class BZ2BzReadFunction extends Function {
42+
BZ2BzReadFunction() { this.hasGlobalName("BZ2_bzRead") }
43+
}
44+
45+
/**
46+
* The `BZ2_bzBuffToBuffDecompress` function is used in Flow sink
47+
*/
48+
class BZ2BzBuffToBuffDecompressFunction extends Function {
49+
BZ2BzBuffToBuffDecompressFunction() { this.hasGlobalName("BZ2_bzBuffToBuffDecompress") }
50+
}

0 commit comments

Comments
 (0)