Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated description.

...

Most legitimate platform dependencies can and should be isolated in separate modules that use expose portable, platform agnostic interfaces but to platform-specific implementations. Portable applications that cannot avoid relying on platform-specific details should always provide a generic, portable, standards-based solution as a fallback mechanism for the platform-specific alternative. That way, such application can be more easily ported to new platforms, without an excessive risk of security flaws caused by assumptions that do not hold in the new environment.

Noncompliant Code Example

...