Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated parasoft

...

A more general and safer solution to this problem is to use a flexible array member that guarantees the array that follows the structure is properly aligned by inserting padding, if necessary, between it and the member that immediately precedes it.

Risk Assessment

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

ARR37-C

Medium

Probable

Medium

P8

L2

Automated Detection

Tool

Version

Checker

Description

Astrée
Include Page
Astrée_V
Astrée_V
 

Supported, but no explicit checker
Compass/ROSE
 

 

 




Coverity
Include Page
Coverity_V
Coverity_V
ARRAY_VS_SINGLETONImplemented
LDRA tool suite
 
Include Page
LDRA_V
LDRA_V
567 SPartially implemented
Parasoft C/C++test
Include Page
c:
Parasoft_V
c:
Parasoft_V
PB-51
 
Implemented
Polyspace Bug FinderR2016aInvalid assumptions about memory organization

Address is computed by adding or subtracting from address of a variable

PRQA QA-C
Include Page
PRQA QA-C_v
PRQA QA-C_v
2930, 2931, 2932,
2933, 2934
 

PRQA QA-C++
Include Page
cplusplus:PRQA QA-C++_V
cplusplus:PRQA QA-C++_V
3705, 3706, 3707
 

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

...

Key here (explains table format and definitions)

Taxonomy

Taxonomy item

Relationship

Bibliography

 



...