Versions Compared

Key

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

...

Failure to minimize scope could result in less reliable, readable, and reusable code.

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

DCL19-C

Low

Unlikely

Medium

P2

L3

Automated Detection

Tool

Version

Checker

Description

Astrée
Include Page
Astrée_V
Astrée_V

local-object-scope

global-object-scope

Partially checked
CodeSonar
Include Page
CodeSonar_V
CodeSonar_V

LANG.STRUCT.SCOPE.FILE
LANG.STRUCT.SCOPE.LOCAL

Scope could be file static
Scope could be local static

ECLAIR

Include Page
ECLAIR_V
ECLAIR_V

CC2.DCL19

Fully implemented

LDRA tool suite
 
Include Page
LDRA_V
LDRA_V
25 D, 61 D, 40 SFully implemented
Parasoft C/C++test
Include Page
c:
Parasoft_V
c:
Parasoft_V
OPT-01
Partially implemented
Implemented
PRQA QA-C
Include Page
PRQA QA-C_v
PRQA QA-C_v
1504, 1505, 1531, 1532, 3210, 3218
 

RuleChecker
Include Page
RuleChecker_V
RuleChecker_V

local-object-scope

global-object-scope

Partially checked

Related Vulnerabilities

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

Related Guidelines

...


...