Security context

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

dmtrkovalenko/fff
main @ 957f222
2
Fixes
1
CVEs
CRITICAL
Peak severity
Highlights
Command Injection: 1 prior fix. Scrutinize any change in this area.
crates/fff-core/src/stable_vec.rs: most-fixed (1 issue). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

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

Command Injection: External shell commands are spawned using user-controlled file paths. If these paths contain shell metacharacters, arbitrary commands can be executed in the context of the editor. Escaping must be systematically enforced across all preview handlers.
Memory Safety: Unsafe Rust operations and raw pointer dereferences in the core data structures can lead to segmentation faults and undefined behavior when updating data tracks if bounds and wrapper invariant checks are bypassed.