Buffer not sufficient for string (cpp/overflow-calculated) |
Fewer results |
This query no longer reports results that would be found by the 'No space for zero terminator' (cpp/no-space-for-terminator) query. |
Call to function with extraneous arguments (cpp/futile-params) |
Improved coverage |
Query has been generalized to find all cases where the number of arguments exceeds the number of parameters of the function, provided the function is also properly declared/defined elsewhere. |
Commented-out code (cpp/commented-out-code) |
More correct results |
Commented-out preprocessor code is now detected by this query. |
| Comparison result is always the same |
Fewer false positive results |
The range analysis library is now more conservative about floating point values being possibly NaN. |
Constructor with default arguments will be used as a copy constructor (cpp/constructor-used-as-copy-constructor) |
Lowered severity and precision |
The severity and precision of this query have been reduced to "warning" and "low", respectively. This coding pattern is used intentionally and safely in a number of real-world projects. Results are no longer displayed on LGTM unless you choose to display them. |
Dead code due to goto or break statement (cpp/dead-code-goto) |
Fewer false positive results |
Functions containing preprocessor logic are now excluded from this analysis. |
Memory is never freed (cpp/memory-never-freed) |
More correct results |
Support added for more Microsoft-specific allocation functions, including LocalAlloc, GlobalAlloc, HeapAlloc and CoTaskMemAlloc. |
Memory may not be freed (cpp/memory-may-not-be-freed) |
More correct results |
Support added for more Microsoft-specific allocation functions, including LocalAlloc, GlobalAlloc, HeapAlloc and CoTaskMemAlloc. |
Mismatching new/free or malloc/delete (cpp/new-free-mismatch) |
Fewer false positive results |
Fixed an issue where functions were being identified as allocation functions inappropriately. This correction also affects cpp/new-array-delete-mismatch and cpp/new-delete-array-mismatch. |
No space for zero terminator (cpp/no-space-for-terminator) |
More correct results |
This query now detects calls to std::malloc. |
Overflow in uncontrolled allocation size (cpp/uncontrolled-allocation-size) |
More correct results |
This query has been reworked so that it can find a wider variety of results. |
Resource not released in destructor (cpp/resource-not-released-in-destructor) |
Fewer false positive results |
Resource allocation and deallocation functions are now determined more accurately. |
| Use of potentially dangerous function |
More correct results |
Calls to localtime, ctime and asctime are now detected by this query. |
Wrong type of arguments to formatting function (cpp/wrong-type-format-argument) |
More correct results and fewer false positive results |
This query now understands non-standard uses of %L. In addition, it more accurately identifies wide and non-wide string/character format arguments on different platforms. |
Use of potentially dangerous function (cpp/potentially-dangerous-function) |
Fewer results |
Results relating to the standard library gets function have been moved into a new query (cpp/dangerous-function-overflow). |