Security context

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

pganssle/zoneinfo
master @ 666d80c
2
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Memory Safety: 1 prior fix. Scrutinize any change in this area.
lib/zoneinfo_module.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.

Path Traversal: ZoneInfo keys can be manipulated to reference paths outside of the designated TZPATH directory via directory traversal sequences if input sanitization and normalization are omitted.
Memory Safety: Error conditions in C extension helper functions (like PyObject_IsTrue) can return negative values that represent failures. If these are cast directly to unsigned types without check validation, the failures are masked, potentially leading to undefined memory states in PyMem_Calloc.