Security context

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

gilnaa/memoffset
master @ 153fc3d
2
Fixes
1
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
src/offset_of.rs: 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 Safety: Evaluating user-provided expressions inside internal `unsafe` blocks can allow arbitrary, unvalidated user code to execute with unsafe privileges. This risk is highlighted by CVE-2019-15553, where uninitialized memory structures could be exposed.
Auth Bypass: Allowing arbitrary deep field access or subscripts on uninitialized structures can trigger implicit deref coercion. This bypasses structural validation and leads to undefined behavior, necessitating strict syntax restrictions on macro inputs.