Highlights
Memory Corruption: 1 prior fix. Scrutinize any change in this area.
lib/childprocess/unix/posix_spawn_process.rb: most-fixed (2 issues). 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.
Memory Corruption: Ruby's garbage collector can run during native system execution and sweep memory pointers allocated for argv and env parameters before the system call completes, leading to memory corruption or crashes. Developers must ensure Ruby GC is disabled during critical native calls.
Race Condition: Concurrent executions of process spawning can conflict over shared state like the current working directory, leading to a child process executing in an unintended directory context. Synchronized blocks are required around directory transitions and spawns.