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 {
4747
4848 /**
4949 * 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.
5151 */
5252 private predicate constantValueCheck ( DataFlow:: Node g , Expr e , boolean branch ) {
5353 exists ( Literal lit , DataFlow:: EqualityTestNode eq | eq = g |
@@ -59,7 +59,7 @@ module HardcodedCredentials {
5959 }
6060
6161 /**
62- * A value validated by comparing it to a disallowed constant value.
62+ * A value validated by comparing it to a constant value.
6363 * For example, in the context `if key != "invalid_key" { ... }`,
6464 * if `"invalid_key"` is indeed the only dangerous key then guarded uses of `key` are likely
6565 * to be safe.
You can’t perform that action at this time.
0 commit comments