Versions Compared

Key

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

...

Most legitimate platform dependencies can and should be isolated in separate modules that use portable interfaces but platform-specific implementations.

Non-Compliant

...

Code Example

This non-compliant coding code example used uses the complement operator in the test for unsigned integer overflow.

...

If the non-compliant form of this test is truly faster, talk to your compiler vendor, because if these tests are equivalent then optimization should occur. If both forms have the same performance, prefer the portable form.

Risk Assessment

Unused values may indicate significant logic errors, possibly resulting in a denial of service conditionUnnecessary platform dependencies are, by definition, unnecessary. Avoiding these dependencies can eliminate porting errors resulting from invalidated assumptions.

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

MSC14-A

low

unlikely

medium

P2

L3

...