Security context

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

facebook/yoga
main @ db7fc6d
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Memory Corruption: 1 prior fix. Scrutinize any change in this area.
uikit/CSSLayout/UIView+CSSLayout.m: 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.

Use After Free: Concurrency issues during JNI garbage collection can cause multiple threads to finalize YogaNodes simultaneously, leading to undefined behavior and use-after-free states during tree mutation. Developers must use safe allocation/deallocation patterns that isolate tree mutations from concurrent finalizer threads.
Memory Corruption: Accessing children of a layout node by index without verifying bounds leads to out-of-bounds array reads and potential memory corruption. All layout wrappers must explicitly validate index boundaries before calling underlying retrieval functions.