File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
go/ql/lib/semmle/go/security Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ module HardcodedCredentials {
47
47
48
48
/**
49
49
* Holds if the guard `g` in its branch `branch` validates the expression `e`
50
- * by comparing it to a disallowed literal.
50
+ * by comparing it to a literal.
51
51
*/
52
52
private predicate constantValueCheck ( DataFlow:: Node g , Expr e , boolean branch ) {
53
53
exists ( Literal lit , DataFlow:: EqualityTestNode eq | eq = g |
@@ -59,7 +59,7 @@ module HardcodedCredentials {
59
59
}
60
60
61
61
/**
62
- * A value validated by comparing it to a disallowed constant value.
62
+ * A value validated by comparing it to a constant value.
63
63
* For example, in the context `if key != "invalid_key" { ... }`,
64
64
* if `"invalid_key"` is indeed the only dangerous key then guarded uses of `key` are likely
65
65
* to be safe.
You can’t perform that action at this time.
0 commit comments