mirror of
https://github.com/github/codeql.git
synced 2026-03-28 10:18:17 +01:00
1.6 KiB
1.6 KiB
Improvements to C/C++ analysis
The following changes in version 1.24 affect C/C++ analysis in all applications.
General improvements
New queries
| Query | Tags | Purpose |
|---|
Changes to existing queries
| Query | Expected impact | Change |
|---|---|---|
Hard-coded Japanese era start date (cpp/japanese-era/exact-era-date) |
This query is no longer run on LGTM. | |
No space for zero terminator (cpp/no-space-for-terminator) |
Fewer false positive results | This query has been modified to be more conservative when identifying which pointers point to null-terminated strings. This approach produces fewer, more accurate results. |
Changes to libraries
- The new class
StackVariableshould be used in place ofLocalScopeVariablein most cases. The difference is thatStackVariabledoes not include variables declared withstaticorthread_local.- As a rule of thumb, custom queries about the values of variables should
be changed from
LocalScopeVariabletoStackVariable, while queries about the name or scope of variables should remain unchanged. - The
LocalScopeVariableReachabilitylibrary is deprecated in favor ofStackVariableReachability. The functionality is the same.
- As a rule of thumb, custom queries about the values of variables should
be changed from