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

OSSystems / compress-tools-rs / 24838251277
78%
master: 78%

Build:
Build:
LAST BUILD BRANCH: chore/nix-red-tape
DEFAULT BRANCH: master
Ran 23 Apr 2026 01:35PM UTC
Jobs 1
Files 16
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

23 Apr 2026 01:30PM UTC coverage: 78.518% (+0.7%) from 77.836%
24838251277

Pull #163

github

otavio
fix!: reject mtree specifications on archive entry points

libarchive's mtree format handler matches arbitrary free-form text, so inputs as innocuous
as a plain gunzip'd text file were being parsed as single-entry mtree "archives". This
defeats the guarantee added alongside the raw-handler removal, where archive entry points
are supposed to reliably reject non-archive bytes.

- After each successful archive_read_next_header, check archive_format and treat an mtree
  match the same way we treat the raw handler: return an Extraction error instead of
  yielding bogus entries
- Wire the check into list_archive_files, list_archive_entries, uncompress_archive,
  uncompress_archive_file, and ArchiveIterator (covering their _with_encoding and async
  siblings via the shared helpers)
- Expose archive_format plus ARCHIVE_FORMAT_BASE_MASK / ARCHIVE_FORMAT_MTREE through the
  FFI bindings and generate-ffi script
- Extend CHANGES.md and the crate-level docs to describe the mtree rejection alongside the
  existing raw-handler note
- Add regression tests that feed tests/fixtures/file.txt.gz through list_archive_files and
  ArchiveIterator to confirm both surfaces reject the mtree interpretation
Pull Request #163: Reject non-archive inputs on archive entry points (#77)

85 of 88 new or added lines in 3 files covered. (96.59%)

1 existing line in 1 file now uncovered.

2003 of 2551 relevant lines covered (78.52%)

94.72 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.86
0.11% tests/integration_test.rs
1
90.87
1.0% src/iterator.rs

Coverage Regressions

Lines Coverage ∆ File
1
70.03
-0.31% src/async_support.rs
Jobs
ID Job ID Ran Files Coverage
1 24838251277.1 23 Apr 2026 01:35PM UTC 16
78.52
GitHub Action Run
Source Files on build 24838251277
  • Tree
  • List 16
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24838251277
  • Pull Request #163
  • PR Base - master (#24838247186)
  • Delete
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