Security context

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

mkleehammer/pyodbc
master @ 9fd386c
3
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Buffer Overflow: 1 prior fix. Scrutinize any change in this area.
src/getdata.cpp: 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.

Buffer Overflow: Fetching decimal database values with more than 100 digits could overflow a hardcoded 100-byte stack-based buffer, leading to arbitrary code execution or application crashes.
Buffer Overflow: Parsing decimal values using static buffers without dynamic resizing led to static buffer overflows, requiring a migration to Python Unicode objects.
Denial of Service: Failing to decrement the reference count of temporary Python objects (e.g., 'newDigits' PyObject) during Python-to-C decimal conversion leads to memory leaks, exposing long-running database processes to OOM denial of service.