Update javascript/ql/src/semmle/javascript/security/dataflow/UnsafeShellCommandConstructionCustomizations.qll

Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
Erik Krogh Kristensen
2020-12-22 08:37:24 +01:00
committed by GitHub
parent 876ba7ef2d
commit 18d26cabe5

View File

@@ -191,8 +191,8 @@ module UnsafeShellCommandConstruction {
}
/**
* A check of the form `type x === "X"`, where x is "number", or "boolean",
* which sanitized `x` in its "then" branch.
* A guard of the form `typeof x === "<T>"`, where <T> is "number", or "boolean",
* which sanitizes `x` in its "then" branch.
*/
class TypeOfSanitizer extends TaintTracking::SanitizerGuardNode, DataFlow::ValueNode {
Expr x;