mirror of
https://github.com/github/codeql.git
synced 2026-05-10 17:29:26 +02:00
TypeOfCheck -> TypeOfUndefinedSanitizer
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
committed by
GitHub
parent
05d7be8e23
commit
82cf53897f
@@ -828,11 +828,11 @@ module TaintTracking {
|
||||
}
|
||||
|
||||
/** A check of the form `type x === "undefined"`, which sanitized `x` in its "then" branch. */
|
||||
class TypeOfCheck extends AdditionalSanitizerGuardNode, DataFlow::ValueNode {
|
||||
class TypeOfUndefinedSanitizer extends AdditionalSanitizerGuardNode, DataFlow::ValueNode {
|
||||
Expr x;
|
||||
override EqualityTest astNode;
|
||||
|
||||
TypeOfCheck() {
|
||||
TypeOfUndefinedSanitizer() {
|
||||
exists(StringLiteral str, TypeofExpr typeof | astNode.hasOperands(str, typeof) |
|
||||
str.getValue() = "undefined" and
|
||||
typeof.getOperand() = x
|
||||
|
||||
Reference in New Issue
Block a user