mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C++: cpp/incomplete-parity-check: medium precision
As reported in CPP-236, this query has false positives on signed integers that cannot be negative. It could possibly be improved with a local range analysis, but the query would most likely still have so many false positives that we would have to lower its precision. Under our current policy, this change will make the query hidden by default on LGTM.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* negative numbers.
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @precision high
|
||||
* @precision medium
|
||||
* @id cpp/incomplete-parity-check
|
||||
* @tags reliability
|
||||
* correctness
|
||||
|
||||
Reference in New Issue
Block a user