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)
-
Architecture and Design
Use a language or compiler that uses exceptions and requires the catching of those exceptions.
-
Implementation
Properly check all functions which return a value.
-
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.