Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

google-ai-edge/mediapipe
master @ 7e0e8de
4
Fixes
0
CVEs
HIGH
Peak severity
66.7%
Coverage
Highlights
Denial of Service: 4 prior fixes. Scrutinize any change in this area.
mediapipe/calculators/audio/stabilized_log_calculator.cc: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Denial of Service: The component used strict CHECK assertions on incoming signal values, causing immediate process termination when encountering negative or NaN inputs. Developers must replace hard crashes with soft error status returns.
Denial of Service: Invalid Region of Interest (ROI) dimensions containing NaNs or non-positive sizes cause OpenCV's perspective warping engine to crash. Strict validation of ROI parameters must be enforced prior to invoking cv::RotatedRect.
Denial of Service: Memory safety issues arise in the Swift/C++ boundary when resolving pointers. Attempting to deserialize opaque pointers from nil context callbacks leads to segmentation faults during asynchronous LLM generation.