Automated dynamic analysis: Use fuzzing, robustness testing, and fault injection with diverse inputs, and watch for instability, crashes, or incorrect results. This has moderate effectiveness and may slow execution. Compilation-integrated memory-safety checks such as AddressSanitizer for C/C++ also have moderate effectiveness; they require inputs that reach the faulty code, may reduce performance, and report the error condition rather than the original cause.
Manual dynamic analysis: Trigger unusual error conditions such as low memory, insufficient privileges, interrupted transactions, or disabled basic network services, then monitor for unexpected behavior. An exception caught by the application environment may still indicate that the application did not properly handle the underlying condition.
Automated static analysis: SAST can detect some instances by modeling data and control flow and searching for vulnerable patterns from input sources to sinks. It has high effectiveness but does not guarantee detection of every instance.