We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a109c9 commit 0fc69a4Copy full SHA for 0fc69a4
1 file changed
cpp/ql/src/experimental/Security/CWE/CWE-561/FindIncorrectlyUsedSwitch.ql
@@ -84,7 +84,7 @@ predicate isConditionBig(SwitchStmt swtmp) {
84
}
85
86
/** Holds if there are labels inside the block with names similar to `default` or `case`. */
87
-predicate isWrongLableName(SwitchStmt swtmp) {
+predicate isWrongLabelName(SwitchStmt swtmp) {
88
not swtmp.hasDefaultCase() and
89
exists(LabelStmt lb |
90
(
@@ -147,7 +147,7 @@ where
147
isConditionBig(sw) and msg = "The range of condition values is wider than the choices."
148
)
149
or
150
- isWrongLableName(sw) and msg = "Possibly erroneous label name."
+ isWrongLabelName(sw) and msg = "Possibly erroneous label name."
151
152
isCodeBeforeCase(sw) and msg = "Code before case will not be executed."
153
select sw, msg
0 commit comments