Skip to content

Commit 61f3384

Browse files
author
Robert Marsh
committed
C++: Change note and precision for DeadCodeGoto.ql
1 parent 73cae53 commit 61f3384

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

change-notes/1.19/analysis-cpp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
| Cast between HRESULT and a Boolean type (`cpp/hresult-boolean-conversion`) | external/cwe/cwe-253 | Finds logic errors caused by mistakenly treating the Windows `HRESULT` type as a Boolean instead of testing it with the appropriate macros. Enabled by default. |
1010
| Setting a DACL to `NULL` in a `SECURITY_DESCRIPTOR` (`cpp/unsafe-dacl-security-descriptor`) | external/cwe/cwe-732 | This query finds code that creates world-writable objects on Windows by setting their DACL to `NULL`. Enabled by default. |
1111
| Cast from char* to wchar_t* | security, external/cwe/cwe-704 | Detects potentially dangerous casts from char* to wchar_t*. Enabled by default on LGTM. |
12+
| Dead code due to goto or break statement (`cpp/dead-code-goto`) | maintainability, external/cwe/cwe-561 | Detects dead code following a goto or break statement. Enabled by default on LGTM. |
1213

1314
## Changes to existing queries
1415

cpp/ql/src/Critical/DeadCodeGoto.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* @description A goto or break statement is followed by unreachable code.
44
* @kind problem
55
* @problem.severity warning
6+
* @precision high
67
* @id cpp/dead-code-goto
78
* @tags maintainability
89
* external/cwe/cwe-561

0 commit comments

Comments
 (0)