• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Chia-Network / chia-blockchain / 23917367233

02 Apr 2026 07:08PM UTC coverage: 91.183% (-0.003%) from 91.186%
23917367233

push

github

web-flow
[SEC-615] Reject malformed weight proof segments with overflow block at index 0 (#20747)

* Reject malformed weight proof segments with overflow block at index 0

Add a bounds check in __validate_pospace before accessing
segment.sub_slots[idx - 1] on the overflow path. When idx == 0,
Python's negative indexing silently reads the last element instead of a
predecessor slot. This mirrors the existing guard in
_get_challenge_block_vdfs and returns None (same pattern as other
validation failures in this function).

* Add test for overflow block at sub-slot index 0 rejection

Exercises the new idx < 1 guard in __validate_pospace to achieve 100%
diff coverage on the defensive bounds check.

10483 of 11671 branches covered (89.82%)

Branch coverage included in aggregate %.

15 of 15 new or added lines in 2 files covered. (100.0%)

68 existing lines in 8 files now uncovered.

106592 of 116725 relevant lines covered (91.32%)

1.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.75
/chia/full_node/full_node_api.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc