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) {
8484}
8585
8686/** 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 ) {
8888 not swtmp .hasDefaultCase ( ) and
8989 exists ( LabelStmt lb |
9090 (
@@ -147,7 +147,7 @@ where
147147 isConditionBig ( sw ) and msg = "The range of condition values is wider than the choices."
148148 )
149149 or
150- isWrongLableName ( sw ) and msg = "Possibly erroneous label name."
150+ isWrongLabelName ( sw ) and msg = "Possibly erroneous label name."
151151 or
152152 isCodeBeforeCase ( sw ) and msg = "Code before case will not be executed."
153153select sw , msg
You can’t perform that action at this time.
0 commit comments