Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tool

Version

Checker

Description

Astrée
Include Page
Astrée_V
Astrée_V
array-size-globalPartially checkedCodeSonar
Axivion Bauhaus Suite

Include Page

CodeSonar

Axivion Bauhaus Suite_V

CodeSonar

Axivion Bauhaus Suite_V

LANG.STRUCT.DECL.FAMCertC-ARR02Fully implementedDeclaration of flexible array member
Compass/ROSE




ECLAIR

Include Page
ECLAIR_V
ECLAIR_V

CC2.ARR02

Fully implemented

Helix QAC

Include Page
Helix QAC_V
Helix QAC_V

C0678, C0688, C3674, C3684


LDRA tool suite
Include Page
LDRA_V
LDRA_V

127 S
397 S
404 S

Fully  implemented

Polyspace Bug Finder
Parasoft C/C++test

Include Page
Polyspace Bug FinderParasoft_VPolyspace Bug Finder
Parasoft_V

Improper array initialization

MISRA C:2012 Rule 8.11

MISRA C:2012 Rule 9.5

Incorrect array initialization when using initializers

When an array with external linkage is declared, its size should be explicitly specified

Where designated initializers are used to initialize an array object the size of the array shall be specified explicitly

CERT_C-ARR02-a

Explicitly specify array bounds in array declarations with initializers

PC-lint Plus

Include Page
PC-lint Plus_V
PC-lint Plus_V

576

Partially supported

Polyspace Bug Finder

Include Page
Polyspace Bug Finder_V
Polyspace Bug Finder_V

CERT C: Rec. ARR02-C


Checks for improper array initialization (rec, partially covered).

PRQA QA-C
Include Page
PRQA QA-C_vPRQA QA-C_v

0688,3674,3684, 678

Fully implemented

PVS-Studio

Include Page
PVS-Studio_V
PVS-Studio_V

V798
RuleChecker
Include Page
RuleChecker_V
RuleChecker_V
array-size-globalPartially checked
SonarQube C/C++ Plugin
Include Page
SonarQube C/C++ Plugin_V
SonarQube C/C++ Plugin_V
S834

...