Swift: Add NumberLiteral sources as well.

This commit is contained in:
Geoffrey White
2023-01-17 18:04:26 +00:00
parent d1cfdb97ee
commit b3d30bfc4f
3 changed files with 27 additions and 6 deletions

View File

@@ -22,7 +22,8 @@ import DataFlow::PathGraph
class ConstantSaltSource extends Expr {
ConstantSaltSource() {
this = any(ArrayExpr arr | arr.getType().getName() = "Array<UInt8>") or
this instanceof StringLiteralExpr
this instanceof StringLiteralExpr or
this instanceof NumberLiteralExpr
}
}