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

bodgit / sevenzip
76%
main: 77%

Build:
Build:
LAST BUILD BRANCH: renovate/bodgit-workflows-1.x
DEFAULT BRANCH: main
Repo Added 30 Jul 2020 07:08AM UTC
Files 25
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

LAST BUILD ON BRANCH fix/folder-reader-bounds
branch: fix/folder-reader-bounds
CHANGE BRANCH
x
Reset
  • fix/folder-reader-bounds
  • aes_protect
  • arm64
  • bra-eof
  • custom-decompressor
  • delta-distance-256
  • dependabot/github_actions/actions/checkout-5.0.0
  • dependabot/github_actions/actions/setup-go-5.2.0
  • dependabot/github_actions/actions/setup-go-5.4.0
  • dependabot/github_actions/actions/setup-go-5.5.0
  • dependabot/github_actions/actions/upload-artifact-4.5.0
  • dependabot/github_actions/actions/upload-artifact-4.6.0
  • dependabot/github_actions/actions/upload-artifact-4.6.1
  • dependabot/github_actions/actions/upload-artifact-4.6.2
  • dependabot/github_actions/actions/upload-artifact-5.0.0
  • dependabot/github_actions/amannn/action-semantic-pull-request-6.1.0
  • dependabot/github_actions/amannn/action-semantic-pull-request-6.1.1
  • dependabot/github_actions/github/codeql-action-3.27.7
  • dependabot/github_actions/github/codeql-action-3.27.9
  • dependabot/github_actions/github/codeql-action-3.28.0
  • dependabot/github_actions/github/codeql-action-3.28.1
  • dependabot/github_actions/github/codeql-action-3.28.10
  • dependabot/github_actions/github/codeql-action-3.28.11
  • dependabot/github_actions/github/codeql-action-3.28.12
  • dependabot/github_actions/github/codeql-action-3.28.13
  • dependabot/github_actions/github/codeql-action-3.28.14
  • dependabot/github_actions/github/codeql-action-3.28.15
  • dependabot/github_actions/github/codeql-action-3.28.16
  • dependabot/github_actions/github/codeql-action-3.28.17
  • dependabot/github_actions/github/codeql-action-3.28.18
  • dependabot/github_actions/github/codeql-action-3.28.19
  • dependabot/github_actions/github/codeql-action-3.28.2
  • dependabot/github_actions/github/codeql-action-3.28.3
  • dependabot/github_actions/github/codeql-action-3.28.4
  • dependabot/github_actions/github/codeql-action-3.28.5
  • dependabot/github_actions/github/codeql-action-3.28.6
  • dependabot/github_actions/github/codeql-action-3.28.8
  • dependabot/github_actions/github/codeql-action-3.28.9
  • dependabot/github_actions/github/codeql-action-3.29.0
  • dependabot/github_actions/github/codeql-action-3.29.1
  • dependabot/github_actions/github/codeql-action-3.29.11
  • dependabot/github_actions/github/codeql-action-3.29.2
  • dependabot/github_actions/github/codeql-action-3.29.3
  • dependabot/github_actions/github/codeql-action-3.29.4
  • dependabot/github_actions/github/codeql-action-3.29.5
  • dependabot/github_actions/github/codeql-action-3.29.8
  • dependabot/github_actions/github/codeql-action-3.29.9
  • dependabot/github_actions/github/codeql-action-3.30.0
  • dependabot/github_actions/github/codeql-action-3.30.1
  • dependabot/github_actions/github/codeql-action-3.30.2
  • dependabot/github_actions/github/codeql-action-3.30.3
  • dependabot/github_actions/github/codeql-action-3.30.4
  • dependabot/github_actions/github/codeql-action-3.30.5
  • dependabot/github_actions/github/codeql-action-3.30.6
  • dependabot/github_actions/github/codeql-action-4.30.7
  • dependabot/github_actions/github/codeql-action-4.30.8
  • dependabot/github_actions/github/codeql-action-4.31.0
  • dependabot/github_actions/github/codeql-action-4.31.1
  • dependabot/github_actions/github/codeql-action-4.31.2
  • dependabot/github_actions/github/codeql-action-4.31.3
  • dependabot/github_actions/golangci/golangci-lint-action-6.2.0
  • dependabot/github_actions/golangci/golangci-lint-action-6.3.0
  • dependabot/github_actions/golangci/golangci-lint-action-6.3.1
  • dependabot/github_actions/golangci/golangci-lint-action-6.4.0
  • dependabot/github_actions/golangci/golangci-lint-action-6.5.0
  • dependabot/github_actions/golangci/golangci-lint-action-6.5.1
  • dependabot/github_actions/golangci/golangci-lint-action-6.5.2
  • dependabot/github_actions/golangci/golangci-lint-action-8.0.0
  • dependabot/github_actions/golangci/golangci-lint-action-9.0.0
  • dependabot/github_actions/marocchino/sticky-pull-request-comment-2.9.1
  • dependabot/github_actions/marocchino/sticky-pull-request-comment-2.9.2
  • dependabot/github_actions/marocchino/sticky-pull-request-comment-2.9.3
  • dependabot/github_actions/marocchino/sticky-pull-request-comment-2.9.4
  • dependabot/github_actions/ossf/scorecard-action-2.4.1
  • dependabot/github_actions/ossf/scorecard-action-2.4.3
  • dependabot/github_actions/shogo82148/actions-goveralls-1.10.0
  • dependabot/github_actions/shogo82148/actions-goveralls-1.9.1
  • dependabot/go_modules/github.com/andybalholm/brotli-1.2.0
  • dependabot/go_modules/github.com/klauspost/compress-1.18.0
  • dependabot/go_modules/github.com/klauspost/compress-1.18.1
  • dependabot/go_modules/github.com/klauspost/compress-1.18.2
  • dependabot/go_modules/github.com/pierrec/lz4/v4-4.1.22
  • dependabot/go_modules/github.com/pierrec/lz4/v4-4.1.23
  • dependabot/go_modules/github.com/spf13/afero-1.12.0
  • dependabot/go_modules/github.com/spf13/afero-1.15.0
  • dependabot/go_modules/github.com/stretchr/testify-1.11.1
  • dependabot/go_modules/github.com/ulikunitz/xz-0.5.14
  • dependabot/go_modules/github.com/ulikunitz/xz-0.5.15
  • dependabot/go_modules/golang.org/x/sync-0.10.0
  • dependabot/go_modules/golang.org/x/sync-0.11.0
  • dependabot/go_modules/golang.org/x/sync-0.15.0
  • dependabot/go_modules/golang.org/x/sync-0.16.0
  • dependabot/go_modules/golang.org/x/sync-0.17.0
  • dependabot/go_modules/golang.org/x/text-0.21.0
  • dependabot/go_modules/golang.org/x/text-0.22.0
  • dependabot/go_modules/golang.org/x/text-0.26.0
  • dependabot/go_modules/golang.org/x/text-0.27.0
  • dependabot/go_modules/golang.org/x/text-0.28.0
  • dependabot/go_modules/golang.org/x/text-0.29.0
  • dependabot/go_modules/golang.org/x/text-0.30.0
  • dependabot/go_modules/golang.org/x/text-0.31.0
  • dependabot/go_modules/golang.org/x/text-0.32.0
  • fix/aes7z-iv-corruption
  • fix/fs-open-empty-file
  • fix/header-stream-validation
  • fix/lzma2-shift
  • fix/oom-check
  • fix/read-coder-short-reads
  • fix/reader-pool-leaks
  • fix/skip-unknown-file-properties
  • fuzz
  • issue329
  • issue400
  • issue457
  • main
  • master
  • multi
  • optimized_xz
  • ppmd
  • refs/tags/v1.2.0
  • refs/tags/v1.2.1
  • refs/tags/v1.2.2
  • refs/tags/v1.3.0
  • refs/tags/v1.4.0
  • refs/tags/v1.4.1
  • refs/tags/v1.4.2
  • refs/tags/v1.4.3
  • release-please--branches--main
  • renovate/actions-checkout-5.x
  • renovate/actions-checkout-6.x
  • renovate/actions-checkout-7.x
  • renovate/bodgit-workflows-1.x
  • renovate/commitizen-tools-commitizen-3.x
  • renovate/commitizen-tools-commitizen-4.x
  • renovate/configure
  • renovate/github-codeql-action-4.x
  • renovate/github.com-andybalholm-brotli-1.x
  • renovate/github.com-klauspost-compress-1.x
  • renovate/github.com-pierrec-lz4-v4-4.x
  • renovate/github.com-spf13-afero-1.x
  • renovate/github.com-stangelandcl-ppmd-0.x
  • renovate/github.com-stretchr-testify-1.x
  • renovate/github.com-ulikunitz-xz-0.x
  • renovate/gitleaks-gitleaks-8.x
  • renovate/go4.org-digest
  • renovate/golang.org-x-sync-0.x
  • renovate/golang.org-x-text-0.x
  • renovate/golangci-golangci-lint-2.x
  • renovate/major-github-artifact-actions
  • renovate/marocchino-sticky-pull-request-comment-3.x
  • renovate/ossf-scorecard-action-2.x
  • renovate/pre-commit-pre-commit-hooks-4.x
  • renovate/pre-commit-pre-commit-hooks-6.x
  • v1.0.0
  • v1.1.0
  • workflows

04 Oct 2026 11:24PM UTC coverage: 75.975% (+0.2%) from 75.726%
37243680009

Pull #498

github

bodgit
fix: validate pack streams and folder indices in header

folderReader indexes the pack sizes, its input and output streams
using values taken straight from the header, so a crafted header could
panic NewReader (when decoding an encoded header) or File.Open:

* unpack info with no pack info (nil pointer dereference)
* pack info without sizes, or fewer pack streams than the folders
  need (index out of range)
* a bind pair output index beyond the folder's outputs (index out of
  range)
* a packed stream index beyond the folder's inputs (index out of
  range)

A bind pair input index beyond the folder's inputs also left too many
inputs unbound, misreading the pack sizes.

Validate bind pairs and packed streams in readFolder, and require the
number of pack streams with sizes to exactly match the packed streams
across all folders in readStreamsInfo, as 7-Zip does. Both the main
and encoded headers are therefore covered before any folder is read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #498: fix: validate pack streams and folder indices in header

26 of 26 new or added lines in 1 file covered. (100.0%)

1929 of 2539 relevant lines covered (75.97%)

0.86 hits per line

Relevant lines Covered
Build:
Build:
2539 RELEVANT LINES 1929 COVERED LINES
0.86 HITS PER LINE
Source Files on fix/folder-reader-bounds
  • Tree
  • List 25
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
37243680009 fix/folder-reader-bounds fix: validate pack streams and folder indices in header folderReader indexes the pack sizes, its input and output streams using values taken straight from the header, so a crafted header could panic NewReader (when decoding an encoded header) or ... Pull #498 04 Oct 2026 11:26PM UTC bodgit github
75.97
See All Builds (1403)
  • Repo on GitHub
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