Versions Compared

Key

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

It is possible to modify assign the value of a constant object by using a non-constant value, but the resulting behavior is undefined. According to C99 Section 6.7.3, "Type qualifiers," Paragraph 5:

...

Risk Assessment

Modifying constant values objects through non-constant references results may result in unexpected program undefined behavior.

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

EXP31-C

1 (low)

1 (unlikely)

2 (medium)

P2

L3

...