rust-hardened-malloc-sys 16.0.2026071503+ds-1
Package Information
| Description | Rust bindings for GrapheneOS allocator - Rust source code Source code for Debianized Rust crate "hardened-malloc-sys" |
|---|---|
| Maintainer | Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> |
| Changed By | Jeremy Bícha <jbicha@ubuntu.com> |
| Sponsor | jbicha@debian.org |
| Distribution | unstable |
| Architecture | any |
| VCS | git: https://salsa.debian.org/rust-team/debcargo-conf.git [src/hardened-malloc-sys] (browse) |
| Tracker | https://tracker.debian.org/pkg/rust-hardened-malloc-sys |
| Uploaded | 2 hours ago |
New Package Report
.changes
| Changed-By | Jeremy Bícha <jbicha@ubuntu.com> |
|---|---|
| Architecture | source amd64 |
| Distribution | unstable |
| Source | rust-hardened-malloc-sys |
| Version | 16.0.2026071503+ds-1 |
Changelog
rust-hardened-malloc-sys (16.0.2026071503+ds-1) unstable; urgency=medium . * Package hardened-malloc-sys 16.0.2026071503 from crates.io using debcargo 2.8.4
.dsc
| Section | rust |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | librust-hardened-malloc-sys-dev deb rust optional arch=any |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: hardened-malloc-sys
Upstream-Contact: Ali Polatel <alip@chesswob.org>
Source: https://git.sr.ht/~alip/syd
Files-Excluded:
tests/vendor.rs
Files: *
Copyright: 2025, 2026 Ali Polatel <alip@chesswob.org>
2018-2026 GrapheneOS
License: MIT
Files: vendor/hardened-malloc/third_party/libdivide.h
Copyright:
2010 - 2022 ridiculous_fish, <libdivide@ridiculousfish.com>
2016 - 2026 Kim Walisch, <kim.walisch@gmail.com>
License: Zlib or Boost
Comment: Originally from libdivide
Files: debian/*
Copyright:
2026 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
2026 Jeremy Bícha <jbicha@ubuntu.com>
License: MIT
License: Boost
Boost Software License - Version 1.0 - August 17th, 2003
.
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
.
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
.
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, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
License: MIT
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.
License: Zlib
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
.
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
DFSG Assistant LLM REVIEW 1 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 1 hour ago.
Report
DFSG NEW review for rust-hardened-malloc-sys version 16.0.2026071503+ds-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 1 blocker, 0 important, 1 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
All licences in the tree are free and mutually compatible: MIT for the crate and GrapheneOS hardened_malloc, Zlib-or-Boost for the vendored libdivide.h, and public-domain ChaCha code, so there is no DFSG violation. debian/copyright is nevertheless incomplete: the Files: * stanza does not name strawberry, the holder of the hardened_malloc-rs bindings that src/lib.rs is based on, and it describes vendor/hardened-malloc/arm_mte.h as MIT although a function in it is copied from scudo under Apache-2.0 WITH LLVM-exception, a licence the copyright file never mentions.
Packaging
The package is standard debcargo 2.8.4 output and well formed: correct Build-Depends/Build-Depends-Arch with :native and <!nocheck> qualifiers that are safe at compat 13 because all compilation happens in dh-cargo's test step, which dh skips under nocheck; a single librust--dev package with Multi-Arch same and all feature Provides; DEP-3 patches with clear purposes; autopkgtests covering every feature combination; current Standards-Version 4.7.4 (Policy is 4.7.4.1); and correct Vcs- metadata. No packaging fault was found.
Issues
blocker licensing 1. debian/copyright calls vendor/hardened-malloc/arm_mte.h MIT, omitting the Apache-2.0 WITH LLVM-exception code copied from scudo ◂
- Files:
vendor/hardened-malloc/arm_mte.h:21-25,debian/copyright:6-12 - Basis: checked, in the package or with a reference tool
- Evidence: arm_mte.h:
// Contents of this function were copied from scudo:and// scudo is licensed under the Apache License v2.0 with LLVM Exceptions, which is compatible with/// the hardened_malloc's MIT license. TheFiles: *stanza givesLicense: MITwith Copyright Ali Polatel and GrapheneOS, and no Apache-2.0 stanza or pointer appears anywhere in the file. - Problem: The file mixes GrapheneOS MIT code with the function arm_mte_tag_and_clear_mem copied from scudo, which is under Apache-2.0 WITH LLVM-exception. debian/copyright states a single MIT licence for it and neither points to /usr/share/common-licenses/Apache-2.0 nor reproduces the LLVM exception, so it does not describe the licensing of a file that is both shipped in the binary package and built. Policy 2.3 requires a package's distribution licences in /usr/share/doc/*/copyright. The licences are free and compatible, so this is an accuracy/completeness fault, not a DFSG violation.
- Fix: Give vendor/hardened-malloc/arm_mte.h its own
Filesstanza (or a Comment on it) saying that arm_mte_tag_and_clear_mem is copied from scudo and that the file isMIT and Apache-2.0 WITH LLVM-exception, refer to /usr/share/common-licenses/Apache-2.0 and include the LLVM exception text.
minor
licensing
2. Files: * does not name strawberry, copyright holder of the hardened_malloc-rs bindings that src/lib.rs is based on
◂
- Files:
src/lib.rs:5-8,debian/copyright:6-12 - Basis: checked, in the package or with a reference tool
- Evidence: src/lib.rs:
// Based in part upon hardened_malloc-rs/src/bindings.rs which is/// Copyright (c) strawberry <strawberry@puppygock.gay>/// SPDX-License-Identifier: Apache-2.0 OR MIT; theFiles: *stanza names only Ali Polatel and GrapheneOS. - Problem: Part of src/lib.rs is derived from strawberry's bindings and keeps that holder's notice, which debian/copyright does not repeat. Policy 2.3 does not require it here: dh-cargo installs src/lib.rs unmodified as plain text, notice included, in the -dev package under /usr/share/cargo/registry, so the third condition of Policy 2.3 (no plain-text notice in the shipped form) is not met and the file name is only a completeness omission; this is why it is graded minor. The DFSG team still expects debian/copyright to be complete.
- Fix: Add a
Files: src/lib.rsstanza, or add the holder toFiles: *, withCopyright: 2025, 2026 Ali Polatel <alip@chesswob.org>and2025 strawberry <strawberry@puppygock.gay>,License: MIT(the Apache-2.0 arm of strawberry's dual licence is not the one taken; the file's own SPDX line says MIT).
Verified ◂
- All 31 upstream files outside debian/ and .pc/ were inventoried; every one is matched by the
Files: *stanza except vendor/hardened-malloc/third_party/libdivide.h, which its own later stanza overrides, and debian/* has its own stanza. - Debian files read in full: control, rules, changelog, copyright, copyright.debcargo.hint, debcargo.toml, source/format, patches/series, both patches, tests/control and upstream/metadata.
- The MIT texts in src/lib.rs, src/util.c, build.rs and vendor/hardened-malloc/LICENSE (
Copyright © 2018-2026 GrapheneOS) agree with Cargo.toml'slicense = "MIT", README.md ('same license as the GrapheneOS allocator') and debian/copyright's MIT text. - vendor/hardened-malloc/third_party/libdivide.h (version 5.3.0) names both holders, ridiculous_fish 2010-2022 and Kim Walisch 2016-2026, and its Zlib-or-Boost dual licensing; the dedicated stanza names both holders and carries the complete Boost and Zlib texts.
- vendor/hardened-malloc/chacha.c states
Based on chacha-merged.c version 20080118/D. J. Bernstein/Public domain; public-domain material imposes no notice or licence condition, and the file ships with that notice intact, so it is not a licensing issue. - src/util.c's two holders (Ali Polatel 2026, GrapheneOS 2018) and src/lib.rs's Ali Polatel are named in debian/copyright; the prescan's 'possibly named under a similar name' entries are these and are covered.
- No non-commercial, no-modification, field-of-use or other non-free wording was found anywhere in the tree by grep for the usual phrases.
- Files-Excluded lists tests/vendor.rs; the unpacked tree has no tests/ directory and disable-tests.patch turns its
[[test]]target into[[disabled.test]], consistent with the exclusion. - debian/copyright is DEP-5 with exactly the required Format URL; the MIT, Boost and Zlib licence texts are complete and the
Zlib or Boostexpression is valid. - debian/copyright.debcargo.hint is debcargo's overlay hint with FIXME/UNKNOWN-LICENSE placeholders; it is a debian/ file covered by the
debian/*MIT stanza and is not the package's copyright description. - Compat 13 is supported and neither deprecated nor discouraged. From compat 13 dh skips override_dh_auto_test under DEB_BUILD_OPTIONS=nocheck (debhelper tool), and dh-cargo's build step only copies sources while all compilation is in its test step; the
<!nocheck>Build-Depends-Arch entries therefore do not break a nocheck build, and dh-cargo itself Depends on cargo. - Standards-Version 4.7.4 against Policy 4.7.4.1: the first two components match, so it is current.
- Both patches carry DEP-3 From/Date/Subject headers, series lists both, built-using.patch only suppresses the automatic Built-Using field and disable-tests.patch disables the test target whose source is not in the tarball.
- control defines the single package librust-hardened-malloc-sys-dev, Architecture any, Multi-Arch same, all feature Provides, Depends on ${misc:Depends} (required at compat 13) and librust-cc-1+default-dev matching the crate's build-dependency; there are no maintainer scripts or dirs/install files.
- debian/tests/control provides tests for default, light, seal, tiny and light+seal features, matching debcargo.toml's test command and the crate's features.
- vendor/hardened-malloc/third_party/libdivide.h is upstream's header-only vendored copy; Debian ships libdivide-dev 5.2.0, but the copy is used only through the crate's own build and is not separately installed, which is normal for a debcargo -sys crate.
- uscan found the packaged version as the newest upstream release (upstream
16.0.2026071503, packaged16.0.2026071503+ds).
Not confirmed ◂
- No build or test was run, as this review cannot build the package.
- The member list of the +ds orig tarball could not be enumerated with the available tools; the unpacked tree was inventoried instead.
Proposed changes ◂
None.
Uploader's response to the LLM review
Waiting for the uploader's response until , because the review found serious issues.
Are you a maintainer or uploader of this package? Log in with Salsa to comment on the review.