Debian Patches
Status for rar-rs/0.12.0+dfsg-2
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| drop-windows-sys.patch | Drop the Windows-only windows-sys dependency windows-sys is only used from #[cfg(windows)] code. Debian has no Windows architectures and does not ship librust-windows-sys-dev, so remove it from the manifests. dh-cargo resolves dependencies offline against /usr/share/cargo/registry and would otherwise fail. |
Bastian Germann | no | |||
| drop-rar-napi.patch | Do not build the rar-napi Node.js bindings The rar-napi crate depends on napi, napi-build and napi-derive, which are not packaged for Debian. Drop it from the workspace so dh-rust only builds the rar-rs library and the rar/unrar command-line tools. |
Bastian Germann | no | |||
| exclude-fixtures.patch | Exclude third-party fixtures from tests ntoskrnl_dense_prefix.bin seems to be a Microsoft program. vm_encoded_u32_filter.rar and filter_bsdcat_exe.rar hold bsdcat compiled for Windows. The licenses for these are not documented and proprietary for the first two. |
Bastian Germann | no | |||
| Fix-subtraction-overflow.patch | Fix subtraction overflow in legacy recovery header size check A mutated RAR4 block header can yield data_end < data_start, which panicked with "attempt to subtract with overflow" on 32-bit targets. Use checked_sub so such a range falls through to the existing "recovery data size does not match header" error. |
Bastian Germann <bage@debian.org> | no | https://github.com/yjdyamv/rar-rs/pull/1 | 2026-11-06 | |
| make-dictionary-size-test-32-bit-safe.patch | tests: make dictionary size test 32-bit safe The checked_dict_size test asserted 4 GiB and 8 GiB as usize literals, which overflow on 32-bit targets and are rejected at compile time by deny(arithmetic_overflow). Express the ceilings as u64 and assert the full values only on 64-bit hosts; on 32-bit, verify that those sizes are rejected as exceeding the host address space. |
Bastian Germann <bage@debian.org> | no | https://github.com/yjdyamv/rar-rs/pull/1 | 2026-11-06 | |
| rar5-compute-dictionary-caps-in-u64-for-32-bit.patch | fix(rar5): compute dictionary caps in u64 for 32-bit hosts The 2x-member-size cap and the requested dictionary size were computed in usize, so multi-GiB sizes overflowed or wrapped on 32-bit targets. Do the arithmetic in u64 and add a regression test for multi-GiB -md requests. |
Bastian Germann <bage@debian.org> | no | https://github.com/yjdyamv/rar-rs/pull/1 | 2026-11-06 | |
| encoder-dictionary-size-32-bit.patch | fix(rar5): compute encoder dictionary size in u64 for 32-bit hosts The encoder shifted usize by the dictionary log, which overflows on 32-bit targets for large dictionaries. Centralize it in dict_size_bytes, which computes in u64 and saturates to usize::MAX. |
Bastian Germann <bage@debian.org> | no | https://github.com/yjdyamv/rar-rs/pull/1 | 2026-11-06 | |
| serialize-memory-hungry-tests-on-32-bit.patch | Serialize memory-hungry tests on 32 bit | Bastian Germann <bage@debian.org> | no | 2026-11-06 | ||
| cli-help-switch.patch | Treat --help and -? as root-side switches everywhere Clap auto-adds --help to every command, so it must not be moved behind the subcommand nor dropped as undeclared (`l --help` ran the list instead of printing help). Also map WinRAR's -? onto --help. |
Bastian Germann <bage@debian.org> | no | https://github.com/yjdyamv/rar-rs/pull/3 | ||
| cli-inul-silent.patch | Make -inul suppress error messages like WinRAR -inul now maps to a new --silent option that also drops error messages (the exit code is kept), while -idq keeps only suppressing informational messages. |
Bastian Germann <bage@debian.org> | no | https://github.com/yjdyamv/rar-rs/pull/4 |
All known versions for source package 'rar-rs'
- 0.12.0+dfsg-2 (sid)
