capa
capa copied to clipboard
Range “unbounded max” uses wrong shift precedence (1 << 64 - 1)
Summary
Range currently uses 1 << 64 - 1 as the sentinel for unbounded max. In Python this evaluates to 1 << 63(one more than max signed 64-bit int), not (1 << 64) - 1(maximum unsigned 64-bit integer ). This affects both matcher semantics and renderer checks for or more/infinity.
Impact
- Incorrect upper bound for “unbounded” ranges.
- Renderer logic for or more relies on the same sentinel and should match corrected semantics.
- Low operational risk in common workloads, but core correctness issue.
Versions
Windows 11 25H2 capa 9.3.1