Skip to content

A14-34: ParsSim.R: bitwShiftL overflow silently corrupts the Fitch score at >=31 states #118

Description

@ms609

R/ParsSim.R:315bitwShiftL(1L, tip_states) returns NA (32-bit integer overflow) for any state code >= 31, silently corrupting the resulting Fitch score computation rather than erroring.

Verified REAL (haiku verifier, code-read).

Fix: guard against tip_states >= 31, or use a wider integer/bitset representation for high state counts.

Filed by /red-team area 14 (opus finder, 2026-08-05).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:14Red-team focus area 14in-progressBeing fixed; claiming comment names the branchred-teamFiled by the /red-team rotationsev:lowP3: robustness / polish

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions