Skip to content

v2.50.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 08 Sep 20:54
6e8a7c0

Release summary

  • New queries added for the following rule packages: BannedAPIs, Conversions
  • The following changes have been made for this release:
    • A3-9-1 - VariableWidthIntegerTypesUsed.ql:
      • This query now reports the use of non-fixed width integer types in function return types, with the exception of char types and for main functions.
  • ENV34-C, RULE-21-20, RULE-25-5-3: DoNotStorePointersReturnedByEnvFunctions.ql, CallToSetlocaleInvalidatesOldPointers.ql, CallToSetlocaleInvalidatesOldPointersMisra.ql
  • Fixed a misspelling of "subsequent" in the alert message.

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.20.7 in conjunction with a copy of the CodeQL standard library for C++ (github/codeql) set to the tag codeql-cli/v2.20.7.
    • Using the CodeQL Action or CodeQL runner with the codeql-bundle-v2.20.7.

Appendix: MISRA-C++-2023 new queries

New queries added to cover the following rules:

  • RULE-6-9-2 - AvoidStandardIntegerTypeNames.ql
  • RULE-7-0-1 - NoConversionFromBool.ql
  • RULE-7-0-2 - NoImplicitBoolConversion.ql
  • RULE-7-0-3 - NoCharacterNumericalValue.ql
  • RULE-7-0-4 - InappropriateBitwiseOrShiftOperands.ql
  • RULE-7-0-5 - NoSignednessChangeFromPromotion.ql
  • RULE-7-0-6 - NumericAssignmentTypeMismatch.ql
  • RULE-7-11-3 - FunctionPointerConversionContext.ql
  • RULE-18-5-2 - AvoidProgramTerminatingFunctions.ql
  • RULE-21-2-2 - UnsafeStringHandlingFunctions.ql
  • RULE-21-2-3 - BannedSystemFunction.ql
  • RULE-21-10-1 - NoVariadicFunctionMacros.ql
  • RULE-21-10-2 - NoCsetjmpHeader.ql
  • RULE-23-11-1 - UseSmartPtrFactoryFunctions.ql
  • RULE-24-5-1 - CharacterHandlingFunctionRestrictions.ql
  • RULE-24-5-2 - NoMemoryFunctionsFromCString.ql
  • RULE-25-5-1 - LocaleGlobalFunctionNotAllowed.ql