mirror of
https://github.com/github/codeql.git
synced 2026-01-30 06:42:57 +01:00
Add byte slice type
This commit is contained in:
@@ -328,6 +328,11 @@ class SliceType extends @slicetype, CompositeType {
|
||||
override string toString() { result = "slice type" }
|
||||
}
|
||||
|
||||
/** A byte slice type */
|
||||
class ByteSliceType extends SliceType {
|
||||
ByteSliceType() { this.getElementType() instanceof Uint8Type }
|
||||
}
|
||||
|
||||
/** A struct type. */
|
||||
class StructType extends @structtype, CompositeType {
|
||||
/**
|
||||
|
||||
@@ -39,12 +39,6 @@ module XPathInjection {
|
||||
XPathExpressionStringAsSink() { this instanceof XPath::XPathExpressionString::Range }
|
||||
}
|
||||
|
||||
// TODO: This probably belongs somewhere, but I'm not sure where
|
||||
/** The []byte type */
|
||||
class ByteSliceType extends SliceType {
|
||||
ByteSliceType() { this.getElementType() instanceof Uint8Type }
|
||||
}
|
||||
|
||||
//TODO add runes?
|
||||
/**
|
||||
* A call to `filepath.Rel`, considered as a sanitizer for path traversal.
|
||||
|
||||
Reference in New Issue
Block a user