Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: xref ERR52-JG

Some APIs intentionally return a null reference to indicate that instances are unavailable. This practice can lead to denial-of-service vulnerabilities when the client code fails to explicitly handle the null return case. A null reference is an example of an out-of-band error indicator, which is discouraged by ERR52-JG. Avoid in-band error indicators.

Noncompliant Code Example

...