mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
1.5 KiB
1.5 KiB
Improvements to C/C++ analysis
The following changes in version 1.26 affect C/C++ analysis in all applications.
General improvements
New queries
| Query | Tags | Purpose |
|---|
Changes to existing queries
| Query | Expected impact | Change |
|---|---|---|
Inconsistent direction of for loop (cpp/inconsistent-loop-direction) |
Fewer false positive results | The query now accounts for intentional wrapping of an unsigned loop counter. |
Overflow in uncontrolled allocation size (cpp/uncontrolled-allocation-size) |
The precision of this query has been decreased from "high" to "medium". As a result, the query is still run but results are no longer displayed on LGTM by default. | |
Comparison result is always the same (cpp/constant-comparison) |
More correct results | Bounds on expressions involving multiplication can now be determined in more cases. |
Changes to libraries
- The models library now models more taint flows through
std::string. - The
SimpleRangeAnalysislibrary now supports multiplications of the forme1 * e2whene1ande2are unsigned.