DFSG NEW Queue

DFSG, Licensing & New Packages Team

rust-binwalk 3.1.0+ds-1

Package Information

DescriptionAnalyzes data for embedded file types - Rust source code

Source code for Debianized Rust crate "binwalk"

MaintainerDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Changed ByFukui Daichi <a.dog.will.talk@akane.waseda.jp>
Sponsortsimonq2@debian.org
Distributionunstable
Architectureany
VCSgit: https://salsa.debian.org/rust-team/debcargo-conf.git [src/binwalk] (browse)
Closes#1149104
Trackerhttps://tracker.debian.org/pkg/rust-binwalk
Uploaded5 hours ago

New Package Report

.changes◂
Architecturesource amd64
Distributionunstable
DateMon, 30 Nov 2026 17:43:01 -0600
Sourcerust-binwalk
Version3.1.0+ds-1
Changed-ByFukui Daichi <a.dog.will.talk@akane.waseda.jp>
Changelog◂
rust-binwalk (3.1.0+ds-1) unstable; urgency=medium
 .
   * Package binwalk 3.1.0 from crates.io using debcargo 2.8.4 (Closes: #1149104)
.dsc◂
Priorityoptional
Componentmain
Package-Listbinwalk3 deb devel optional arch=any
librust-binwalk-dev deb rust optional arch=any
Sectiondevel
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: binwalk
Upstream-Contact: Craig Heffner <heffnercj@gmail.com>
Source: https://github.com/ReFirmLabs/binwalk
Files-Excluded:
 scripts/binwalk-ui

Files: *
Copyright: 2024 Craig Heffner <heffnercj@gmail.com>
License: Expat
Comment:
 All files were written in 2024 for the Rust rewrite. devttys0, the holder
 named in LICENSE, is Craig Heffner's GitHub account.
 .
 The GPLv2 BusyBox notice in images/binwalk_animated.svg is recorded scan
 output, not a notice on the file.
 .
 src/extractors/autel.rs reimplements an algorithm from an unlicensed gist:
 https://gist.github.com/sector7-nl/3fc815cd2497817ad461bfbd393294cb
 .
 scripts/binwalk-ui (CC BY-SA 3.0) is excluded from the source. Nothing in
 the crate uses it. It is a developer helper for running a local build.
 Binwalk 3 doesn't need scripts/binwalk-ui to build, run its tests,
 or work as a program or library.

Files: debian/*
Copyright:
 2026 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
 2026 Fukui Daichi <a.dog.will.talk@akane.waseda.jp>
License: Expat

License: Expat
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 .
 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.

DFSG Assistant LLM REVIEW 0 blocker, 0 important, 1 minor

This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.

Reviewed 3 hours ago.

Report◂

DFSG NEW review for rust-binwalk version 3.1.0+ds-1

Summary

  • Licensing is DFSG-compliant and debian/copyright is accurate: Yes
  • Packaging is of good quality: Yes
  • Issues: 0 blocker, 0 important, 1 minor; 1 more from the model's own knowledge, under Not confirmed
  • debian/watch: version 5
  • debian/copyright: machine-readable
  • Scan before the review: 1 found

Licensing

The tree is MIT/Expat throughout: Cargo.toml declares license = "MIT", LICENSE carries the verbatim Expat text, and a whole-tree grep found no other copyright or licence notices (only the magic strings "Copyright" / "Copyright Autel" in code and the BusyBox sentence inside the recorded scan output of images/binwalk_animated.svg). The CC BY-SA 3.0 scripts/binwalk-ui that Files-Excluded and debcargo.toml name is absent from the source, and no non-free terms or unlicensed files remain. One minor completeness point: LICENSE's notice says 2024 devttys0, while the Copyright field names only Craig Heffner; the Comment says the two are the same person, and Policy 2.3 does not require the notice again because LICENSE ships unchanged as plain text in librust-binwalk-dev.

Packaging

debcargo 2.8.4 output: Build-Depends/-Arch are correct for a Rust crate (debhelper-compat 13, dh-sequence-cargo, cargo/rustc/libstd-rust-dev, all librust-*-dev deps resolve in the archive), the two binary packages are properly split with the binary renamed to binwalk3 to coexist with python binwalk, hardening and autopkgtests come from the toolchain, the four patches carry DEP-3 headers and sensible purposes, and Standards-Version 4.7.4 matches Policy 4.7.4.1. One real defect: the backported androidsparse patch puts 16 GiB into a usize, which cannot work on 32-bit targets even though both packages are Architecture: any. No other packaging problem found.

Issues

minor licensing 1. Files: * does not reproduce LICENSE's 2024 devttys0 holder in a Copyright field ◂
  • Files: debian/copyright:9, debian/copyright:12-13, LICENSE:3
  • Basis: checked, in the package or with a reference tool
  • Evidence: Copyright: 2024 Craig Heffner <heffnercj@gmail.com> vs Copyright (c) 2024 devttys0 (LICENSE:3); only the Comment at debian/copyright:12-13 states devttys0, the holder named in LICENSE, is Craig Heffner's GitHub account.
  • Problem: The Expat notice in LICENSE names devttys0, and debian/copyright's Copyright fields never say so; the attribution rests on a free-text Comment rather than on the copyright notice itself, which is what the DFSG team's author check looks for. This is minor because Policy 2.3 does not require the notice to be copied here: LICENSE ships unchanged, as plain text with its notice, in librust-binwalk-dev's crate registry copy, and the Comment does identify the holder.
  • Fix: Write the notice as Copyright: 2024 devttys0 (Craig Heffner) <heffnercj@gmail.com> in the Files: * stanza, or add a Files: LICENSE stanza with Copyright: 2024 devttys0 / License: Expat, and drop the now-redundant Comment sentence.
Verified ◂
  • Read debian/control, rules, changelog, source/format, tests/control, upstream/metadata, debcargo.toml, copyright and copyright.debcargo.hint, all four patches and series; debian/watch not reviewed, cargo-checksum.json not read.
  • src/signatures/pdf.rs is Rust source: the scan's "PDF document" is the DESCRIPTION constant and the signature is the magic b"%PDF-1."; there is no PDF in the tree.
  • images/binwalk_animated.svg contains Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko and others. Licensed under GPLv2. only inside a <text> element as recorded binwalk scan output, not as a licence on the file; the file has a generated-style CSS but no embedded fonts, scripts or images.
  • images/binwalk.png, binwalk_list.png, entropy.png, output.png are screenshots of binwalk output referenced by README.md; not opened (binary), covered by the Files: * Expat stanza.
  • Whole-tree grep (Copyright, (C), ©, SPDX, Licensed under, GPL/LGPL/Apache/MPL, public domain, All rights reserved, CC BY, commercial/redistribute/proprietary) found no other notices or restrictive terms; the only licence texts are LICENSE (Expat) and the Expat paragraph in debian/copyright, and Cargo.toml declares license = "MIT".
  • Files-Excluded: scripts/binwalk-ui matches the tree: there is no scripts/ directory, and nothing in the crate or the packaging refers to binwalk-ui, so the CC BY-SA 3.0 helper is genuinely absent.
  • debian/copyright is DEP-5 1.0 with the exact Format URL; Files: * covers LICENSE, the crate sources, images/, dependencies/, .github/ and the top-level files; debian/* has its own stanza.
  • Build-Depends/-Arch and Depends names spot-checked with apt-cache: librust-crc32-v2 0.2.0, colored 3.1.1, uuid 1.29.3 (macro-diagnostics), entropy 0.4.3, bzip2 0.6.1, plotters 0.3.7, xxhash-rust 0.8.15, threadpool 1.8.1, termsize 0.1.9, dh-cargo 34 (>= 33~) all exist or are provided; Recommends 7zip, unyaffs, lzfse, dmg2img, device-tree-compiler exist.
  • Patches: DEP-3 Description/Author/Last-Update present; rename-binary-to-binwalk3, relax-deps (bzip2 <0.7, colored 3, crc32-v2 0.2.0), doctests-self-contained and backport-androidsparse (Origin upstream) are all applied and their stated build-time needs (no dev-dependencies, flate2 doctest data, no manpages-dev) are consistent with debian/rules and debian/tests/control.
  • Compat 13 with dh-sequence-cargo: debhelper 14.5 neither deprecates nor discourages 13; override_dh_auto_test is skipped by dh under nocheck at 13, and no <!nocheck> build-dependency is used, so the nocheck profile is unaffected.
  • Standards-Version 4.7.4 against Policy 4.7.4.1 (first two components match); changelog version 3.1.0+ds-1, unstable, date consistent, closes #1149104.
  • uscan found the packaged version as the newest upstream release (upstream 3.1.0, packaged 3.1.0+ds).
Not confirmed ◂
  • Could not compare src/extractors/autel.rs with the unlicensed gist it cites (https://gist.github.com/sector7-nl/3fc815cd2497817ad461bfbd393294cb): no network access. The file's doc comment cites it and debian/copyright says it "reimplements an algorithm"; the decoding table is functional data. If the code were copied verbatim rather than reimplemented, that file would have no licence.
  • The APFS extractor invokes 7zzs, while Recommends: 7zip relies on that package providing it. 7zip is not installed here and apt-cache's Commands field for 7zip lists only 7z, 7za, 7zr (a field that also omits dtc for device-tree-compiler), so I could not confirm whether Debian's 7zip ships a 7zzs binary; apt-cache has no Contents index.
  • binwalk3 uses ${cargo:Depends}, ${cargo:Recommends}, ${cargo:Suggests} and ${cargo:Provides}, but nothing on this system defines them (dh-cargo 34's dh-cargo-built-using writes only the Built-Using vars, and the cargo buildsystem writes none); debcargo is not installed to check whether it generates a substvars definition. If undefined, dpkg-gencontrol substitutes them empty with a warning and the Provides/Suggests fields end up empty; the concrete Recommends list in debian/control is unaffected.
  • Whether this is a fault: Backported androidsparse patch puts 16 GiB in a usize, breaking 32-bit builds. The model reported it as a minor packaging issue from its own knowledge of something outside the package, which it did not check with a tool, so it is not counted among the issues. Files: debian/patches/backport-androidsparse.patch:23, src/extractors/androidsparse.rs:24.
    Evidence: + const MAX_UNSPARSED_SIZE: usize = 16 * 1024 * 1024 * 1024; // 16 GiB
    Problem: 2^34 does not fit a 32-bit usize (max 2^32-1). In a typed const item rustc evaluates the multiplication at compile time and its deny-by-default arithmetic_overflow lint turns the overflow into a hard error, so cargo build/cargo test fails on i386, armhf and other 32-bit targets; both binwalk3 and librust-binwalk-dev are Architecture: any. Even if the overflow were allowed, the constant would wrap to 0 and the Some(s) if s <= MAX_UNSPARSED_SIZE guard would reject every Android sparse image. The maintainer's own build would not show it on amd64. (The failure mode rests on rustc's const-eval lint, which I could not run here.)
    Fix: Type the cap u64 and compare in u64: const MAX_UNSPARSED_SIZE: u64 = 16 * 1024 * 1024 * 1024; with Some(s) if s as u64 <= MAX_UNSPARSED_SIZE, and regenerate the patch.
Proposed changes ◂

None.

Uploader's response to the LLM review

The uploader was emailed about the review 3 hours ago.

Are you a maintainer or uploader of this package? Log in with Salsa to comment on the review.

Back to Dashboard | View all reviews for this package