v2.4.0
Pre-release
Pre-release
Release summary
- New queries added for the following rule packages: IO3, Preprocessor2, Strings2
- The following changes have been made for this release:
M16-3-1
-MoreThanOneOccurrenceHashOperatorInMacroDefinition.ql
:- Removes detection of more than one occurrence in non function like Macros.
Supported versions
- The LGTM pack is not supported on any released version of LGTM without support from GitHub Professional Services.
- The Code Scanning pack is supported when:
- Using the CodeQL CLI version
2.7.6
in conjunction with a copy of the CodeQL standard library for C++ (github/codeql
) set to the tagcodeql-cli/v2.7.6
. - Using the CodeQL Action or CodeQL runner with the codeql-bundle-20220120.
- Using the CodeQL CLI version
Appendix: MISRA-C-2012 new queries
New queries added to cover the following rules:
- RULE-4-10 -
PrecautionIncludeGuardsNotProvided.ql
- RULE-20-5 -
UndefShouldNotBeUsed.ql
- RULE-20-11 -
MoreThanOneHashOperatorInMacroDefinition.ql
- RULE-20-12 -
MacroParameterUsedAsHashOperand.ql
- RULE-22-3 -
FileOpenForReadAndWriteOnDifferentStreams.ql
- RULE-22-4 -
AttemptToWriteToAReadOnlyStream.ql
- RULE-22-5 -
PointerToAFileObjectDereferenced.ql
- RULE-22-7 -
EofShallBeComparedWithUnmodifiedReturnValues.ql
Appendix: CERT-C new queries
New queries added to cover the following rules:
- FIO32-C -
DoNotPerformFileOperationsOnDevices.ql
- FIO37-C -
SuccessfulFgetsOrFgetwsMayReturnAnEmptyString.ql
- STR37-C -
ToCharacterHandlingFunctionsRepresentableAsUChar.ql