Highlights
Denial of Service: 2 prior fixes. Scrutinize any change in this area.
Actions: 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.
OS Command Injection: The use of shell execution via 'os.system' allowed arbitrary command injection when processing document layouts. Developers must strictly avoid shell=True or direct string interpolation of external filenames and instead use subprocess list-based invocations.
Out-of-bounds Write: Unvalidated Android bitmap dimensions and strides passed directly to memcpy can cause heap corruption or out-of-bounds writes. Safe memory boundaries and explicit width/height/stride checks must be validated prior to any memory copy operation.
Command Injection: Evaluating untrusted payload contexts like 'github.ref_name' directly inside inline shell scripts creates workflow injection vectors. Context expressions must be mapped to intermediate environment variables rather than expanded inline.