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

bodgit / sevenzip / 37242725101
76%
main: 78%

Build:
Build:
LAST BUILD BRANCH: renovate/actions-upload-artifact-7.x
DEFAULT BRANCH: main
Ran 04 Oct 2026 11:11PM UTC
Jobs 1
Files 25
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Oct 2026 11:09PM UTC coverage: 75.717% (+0.3%) from 75.372%
37242725101

Pull #497

github

bodgit
fix: validate file and stream counts in header

readHeader mapped each non-empty file to a stream with
FileFolderAndSize without checking the header was consistent, so a
crafted header could panic NewReader:

* files with streams but no unpack info (nil pointer dereference)
* files with streams but no streams info at all (nil pointer
  dereference in init)
* more non-empty files than substreams (index out of range)
* a folder with multiple substreams but no sizes (index out of range)

Require the number of non-empty files to match the number of streams,
as 7-Zip does, and require substream sizes when any folder has more
than one stream.

Also fix FileFolderAndSize mapping every file to folder 0 when there
is no substreams info; each folder holds exactly one file in that case.

Fixes #491

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #497: fix: validate file and stream counts in header

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

33 existing lines in 1 file now uncovered.

1902 of 2512 relevant lines covered (75.72%)

0.85 hits per line

Coverage Regressions

Lines Coverage ∆ File
33
84.69
-0.03% reader.go
Jobs
ID Job ID Ran Files Coverage
1 37242725101.1 04 Oct 2026 11:11PM UTC 25
75.72
GitHub Action Run
Source Files on build 37242725101
  • Tree
  • List 25
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #497
  • PR Base - main (#37242758045)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc