You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Coverage summary can panic when complete LCOV record totals overflow #1452
Found while auditing #1437 at 026f93c (tree 1c87a775c2c3d195a447ec30e638424a5409b0ce). This is inherited unchecked aggregation, separate from #1434's source-record completeness repair and unchanged malformed-count coercion.
Native RED: cargo test --workspace --locked coverage_summary_rejects_aggregate_count_overflow compiles and exits 101. Two complete records containing LF:18446744073709551615 then LF:1 panic at src/sensors/coverage.rs:108 (attempt to add with overflow). All records have exact end_of_record delimiters. LH/FNF/FNH use the same unchecked aggregation. This can prevent summary/status receipt emission; release wrapping is source-inferred, not executed evidence.
Deduplication: connected issue search for coverage/LCOV and coverage/overflow found no aggregate-overflow owner; current coverage PR inventory identifies #1437 as the only relevant writer. Reserved separate companion branch fix/coverage-total-overflow, based on frozen #1437 head; parent branch remains untouched.
Bounded repair: checked aggregation of the four existing u64 totals; on overflow return unknown with a diagnostic and zero unusable totals, preserving presence, telemetry flags and top-level process outcomes. Accept u64::MAX when its aggregate is representable, repeated complete source records, CRLF and missing final newline. Preserve existing individual malformed/out-of-range count coercion. No full LCOV parser, inventory/deduplication policy, grammar rejection, analyzer/gate/threshold/suppression changes or live thirdparty services.
Proof: native tests-first RED/GREEN, representable-limit and sidecar controls, existing 55 sensor/native controls and repository baseline. Separate Draft remains subject to its own hosted qualification; #1437's five/maximum-zero analyzer gate is not waived.
Closing as completed on main (2026-11-04 open-issue board sweep; 29-issue verified batch).
Ground truth: already fixed on main.
Verifier evidence: src/sensors/coverage.rs:121 checked_add with 'lcov.info coverage totals overflow' (:125) covering LF/LH/FNF/FNH (:110-118); named test coverage_summary_rejects_aggregate_count_overflow at :164; landed via 36b5152.
Independent re-verification (upheld): Commit verified ancestor; overflow guard confirmed with all four counts looping u64::MAX asserting unknown status, plus the accept-side companion test — panic defect and bounded repair contract both covered.
Activity
EffortlessSteven commentedon Nov 4, 2026
Closing as completed on main (2026-11-04 open-issue board sweep; 29-issue verified batch).
Ground truth: already fixed on main.