Skip to content

Commit cf89b00

Browse files
committed
Fix variable names in QLDocs
1 parent 513409e commit cf89b00

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

go/ql/lib/semmle/go/dataflow/SSA.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ private newtype TSsaWithFields =
310310
TStep(SsaWithFields base, Field f) { exists(accessPathAux(base, f)) }
311311

312312
/**
313-
* Gets a representation of `nd` as an ssa-with-fields value if there is one.
313+
* Gets a representation of `insn` as an ssa-with-fields value if there is one.
314314
*/
315315
private TSsaWithFields accessPath(IR::Instruction insn) {
316316
exists(SsaVariable v | insn = v.getAUse() | result = TRoot(v))

go/ql/lib/semmle/go/dependencies/Dependencies.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class GoModDependency extends Dependency, GoModRequireLine {
8686
}
8787

8888
/**
89-
* Holds if this require line originally states dependency `path` had version `ver`.
89+
* Holds if this require line originally states dependency `path` had version `v`.
9090
*
9191
* The actual info of this dependency can change based on `replace` directives in the same go.mod
9292
* file, which replace a dependency with another one.

go/ql/src/Security/CWE-020/MissingRegexpAnchor.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import go
1515

1616
/**
17-
* Holds if `src` is a pattern for a collection of alternatives where
17+
* Holds if `re` is a pattern for a collection of alternatives where
1818
* only the first or last alternative is anchored, indicating a
1919
* precedence mistake explained by `msg`.
2020
*
@@ -46,7 +46,7 @@ predicate isInterestingSemiAnchoredRegexpString(string re, string msg) {
4646
}
4747

4848
/**
49-
* Holds if `src` is an unanchored pattern for a URL, indicating a
49+
* Holds if `re` is an unanchored pattern for a URL, indicating a
5050
* mistake explained by `msg`.
5151
*/
5252
bindingset[re]

go/ql/src/experimental/CWE-942/CorsMisconfiguration.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class FlowsFromUntrusted extends TaintTracking::Configuration {
166166
}
167167

168168
/**
169-
* Holds if the provided `dst` is also destination of a `UntrustedFlowSource`.
169+
* Holds if the provided `allowOriginHW` is also destination of a `UntrustedFlowSource`.
170170
*/
171171
predicate flowsToGuardedByCheckOnUntrusted(AllowOriginHeaderWrite allowOriginHW) {
172172
exists(FlowsFromUntrusted cfg, DataFlow::Node sink, ControlFlow::ConditionGuardNode cgn |

0 commit comments

Comments
 (0)