Versions Compared

Key

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

...

Tool

Version

Checker

Description

Compass/ROSE

Can detect violations of this rule. In particular, it ensures that the result of getenv() is stored in a const variable

LDRA tool suite
Include Page
LDRA_V
LDRA_V
107 DPartially Implemented
Parasoft C/C++test

Include Page
Parasoft_V
Parasoft_V

CODSTA-185_aImplemented
Polyspace Bug Finder

Include Page
Polyspace Bug Finder_V
Polyspace Bug Finder_V

R2016a

Modification of internal buffer returned from nonreentrant standard function

MISRA C:2012 Rule 21.19

Function attempts to modify internal buffer returned from a nonreentrant standard function

The pointers returned by the Standard Library functions localeconvgetenvsetlocale or strerror shall only be used as if they have pointer to const-qualified type

 PRQA QA-C9.1 1492, 1493 

...