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

freeeve / roaringrange / 26677225846

30 May 2026 06:44AM UTC coverage: 81.948% (-0.6%) from 82.567%
26677225846

push

github

freeeve
fix(reader): harden the reader against malformed/short-read input (never panic)

Honor the crate's "return an error, never panic" contract on adversarial or
truncated input reaching the browser-facing path:

- facet.rs: bounds- and overflow-check FacetIndex::open — checked size
  arithmetic (usize overflow on wasm32), validate name/category ranges before
  slicing, derive posting-region bounds with checked math
- wasm.rs: WasmFetch::read enforces the exact-length RangeFetch contract
  (rejects an origin that ignores Range) and guards offset+len overflow
- records.rs: RecordStore::get errors on a corrupt end<start offset pair
  instead of silently returning a zero-length record
- index.rs: replace the search() debug_assert (debug-build panic on a
  malformed tail) with a filter; saturating_add for untrusted tail offsets;
  add IndexError::Malformed
- tests: malformed-RRSF header and corrupt record-offset-pair cases

345 of 421 relevant lines covered (81.95%)

8.31 hits per line

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

80.87
/transcode.go


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