Skip to content
OpenAdvisories

Weakness (CWE)

CWE-253: Incorrect Check of Function Return Value

Base Incomplete

The product incorrectly checks a return value from a function, which prevents it from detecting errors or exceptional conditions.

How to prevent it (3 mitigations)
  1. Architecture and Design

    Use a language or compiler that uses exceptions and requires the catching of those exceptions.

  2. Implementation

    Properly check all functions which return a value.

  3. Implementation

    When designing any function make sure you return a value or throw an exception in case of an error.

Source: MITRE CWE-253

0 results · Clear filters · Feed

Nothing found.