Security context

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

gvalkov/python-evdev
main @ a47b5b5
1
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Memory Corruption: 1 prior fix. Scrutinize any change in this area.
evdev/input.c: most-fixed (1 issue). Treat as high-risk during review.
0 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.

Memory Corruption: Storing the signed return value of read() (which returns -1 on failure) into an unsigned size_t variable led to a massive integer underflow, bypassing error detection and causing memory corruption or segmentation faults during event processing. Future C changes must ensure all system call return values are stored in appropriate signed types before comparison.