File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
cpp/ql/src/experimental/Security/CWE/CWE-561 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ predicate isConditionBig(SwitchStmt swtmp) {
84
84
}
85
85
86
86
/** Holds if there are labels inside the block with names similar to `default` or `case`. */
87
- predicate isWrongLableName ( SwitchStmt swtmp ) {
87
+ predicate isWrongLabelName ( SwitchStmt swtmp ) {
88
88
not swtmp .hasDefaultCase ( ) and
89
89
exists ( LabelStmt lb |
90
90
(
@@ -147,7 +147,7 @@ where
147
147
isConditionBig ( sw ) and msg = "The range of condition values is wider than the choices."
148
148
)
149
149
or
150
- isWrongLableName ( sw ) and msg = "Possibly erroneous label name."
150
+ isWrongLabelName ( sw ) and msg = "Possibly erroneous label name."
151
151
or
152
152
isCodeBeforeCase ( sw ) and msg = "Code before case will not be executed."
153
153
select sw , msg
You can’t perform that action at this time.
0 commit comments