Daniel Hofstetter
8d3774b67e
Merge pull request #9788 from nutthawit/fix-fetch-gnu-path-suggestion
...
CICD / Documentation/warnings (push) Has been cancelled
CICD / MinRustV (push) Has been cancelled
CICD / Separate Builds (push) Has been cancelled
CICD / Dependencies (push) Has been cancelled
CICD / Code Coverage (push) Has been cancelled
Code Quality / Style/Python (push) Has been cancelled
Benchmarks / Run benchmarks (CodSpeed) (push) Has been cancelled
FreeBSD / Style and Lint (push) Has been cancelled
FreeBSD / Tests (push) Has been cancelled
OpenBSD / Style and Lint (push) Has been cancelled
OpenBSD / Tests (push) Has been cancelled
Code Quality / Style/format (push) Has been cancelled
Code Quality / Style/lint (push) Has been cancelled
Code Quality / Style/spelling (push) Has been cancelled
Code Quality / Style/toml (push) Has been cancelled
Code Quality / Pre-commit hooks (push) Has been cancelled
Devcontainer / Verify devcontainer (push) Has been cancelled
WSL2 / Test (push) Has been cancelled
GnuTests / Aggregate GNU test results (push) Has been cancelled
CICD / Build/Makefile (push) Has been cancelled
CICD / Build/stable (push) Has been cancelled
CICD / Build/nightly (push) Has been cancelled
CICD / Binary sizes (push) Has been cancelled
CICD / Build (push) Has been cancelled
CICD / Tests/BusyBox test suite (push) Has been cancelled
CICD / Tests/Toybox test suite (push) Has been cancelled
CICD / Test all features separately (push) Has been cancelled
CICD / Build/SELinux (push) Has been cancelled
CICD / Build/SELinux-Stubs (Non-Linux) (push) Has been cancelled
CICD / Safe Traversal Security Check (push) Has been cancelled
build-gnu.sh: correct path suggestion for fetch-gnu.sh
2025-12-23 08:42:10 +01:00
Daniel Hofstetter
e70c5a4408
Merge pull request #9786 from uutils/renovate/divan-4.x-lockfile
...
chore(deps): update rust crate divan to v4.2.0
2025-12-23 08:07:40 +01:00
Daniel Hofstetter
52b388a3ff
Merge pull request #9787 from uutils/renovate/linux-raw-sys-0.x-lockfile
...
chore(deps): update rust crate linux-raw-sys to v0.12.1
2025-12-23 07:05:59 +01:00
renovate[bot]
21ced9df0b
chore(deps): update rust crate linux-raw-sys to v0.12.1
2025-12-23 02:03:46 +00:00
nutthawit
63a6d80ade
build-gnu.sh: correct path suggestion for fetch-gnu.sh
2025-12-23 08:54:44 +07:00
renovate[bot]
f3135ca1c8
chore(deps): update rust crate divan to v4.2.0
2025-12-22 22:07:09 +00:00
Daniel Hofstetter
836e5d19c4
Merge pull request #9770 from RenjiSann/checksum-improvements
...
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
CheckScripts / ShellScript/Check (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CheckScripts / ShellScript/Format (push) Waiting to run
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Has been cancelled
checksum: Improve check-only flags handling
2025-12-22 15:58:11 +01:00
Dorian Peron
74f12d5d3b
cksum: remove unneeded hex dependency
2025-12-22 14:41:41 +01:00
Christopher Dryden
0fbc17c2dd
clap_localization: return error instead of calling exit() for fuzzer compatibility
2025-12-22 14:14:09 +01:00
Sylvestre Ledru
54102d7cfd
date fuzzer: should pass in the CI
2025-12-22 14:14:09 +01:00
Sylvestre Ledru
fb5b5f4849
date: improve the date fuzzer
2025-12-22 14:14:09 +01:00
Sylvestre Ledru
6df86206a8
date: handle unknown options gracefully
2025-12-22 14:14:09 +01:00
Sylvestre Ledru
055ba74126
date: allow extra operand
2025-12-22 14:14:09 +01:00
Sylvestre Ledru
58266a890a
date: handle the empty arguments
2025-12-22 14:14:09 +01:00
Dorian Péron
0bfbbc00c7
Fix printenv non-UTF8 ( #9728 )
...
* printenv: Handle invalid UTF-8 encoding in variables
* test(printenv): Add test for non-UTF8 content in variable
2025-12-22 14:12:38 +01:00
oech3
b9b965555c
GNUmakefile: Prepend PROG_PREFIX to LIBSTDBUF_DIR too ( #9068 )
...
* GNUmakefile: Append PROG_PREFIX to LIBSTDBUF_DIR too
* GNUmakefile: FIx woording
Co-authored-by: Etienne Cordonnier <ecordonnier@snap.com>
---------
Co-authored-by: Etienne Cordonnier <ecordonnier@snap.com>
2025-12-22 12:42:29 +01:00
Dorian Peron
d96ae60d21
checksum: Unify the handling of check-only flags
2025-12-22 11:16:14 +01:00
Daniel Hofstetter
87ba3afd19
Merge pull request #9317 from sylvestre/shred-passes
...
shred: ensure deterministic pass sequence compatibility with reference implementation
2025-12-22 11:14:39 +01:00
oech3
2b67abe741
hashsum: Drop --no-names ( #9762 )
...
Co-authored-by: oech3 <>
2025-12-22 10:17:28 +01:00
oech3
aacbeb5828
build-gnu.sh: Enable test/df/no-mtab-status.sh ( #9759 )
...
* build-gnu.sh: Enable test/df/no-mtab-status.sh
* Document why no-mtab-status.sh fails
2025-12-22 10:04:51 +01:00
Kornél Csernai
eed7a0aca7
parser: add binary support to determine_number_system and parse_size ( #9659 )
...
* parser: add binary support to determine_number_system and parse_size
* docs
* tests
* tests: threshold
2025-12-22 09:24:44 +01:00
oech3
a738fbaa43
GnuTests.yml: Discard caches at each build-gnu.sh update ( #9753 )
...
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
* GnuTests.yml: Discard caches at each build-gnu.sh update
* Fix typo
---------
Co-authored-by: oech3 <>
2025-12-21 18:34:24 +01:00
Daniel Hofstetter
79f09a62f0
Merge pull request #9695 from RenjiSann/checksum-ignore-binary
...
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
Checksum ignore binary
2025-12-21 16:14:24 +01:00
Daniel Hofstetter
7c7f1fc47c
Merge pull request #9727 from sylvestre/dup
...
Consolidate legacy argument parsing for head/tail
2025-12-21 15:32:52 +01:00
Mahdi Ali-Raihan
7da2a2dd8b
cat: do not connect to unix domain socket and instead return an error ( #9755 )
...
* cat: do not connect to unix domain socket and instead return an error. fixed #9751
* added empty line to fr-FR.ftl
* made NoSuchDeviceOrAddress error unix specific
2025-12-21 14:54:38 +01:00
RustyJack
939ab037a2
uucore: use --suffix to enable backup mode ( #9741 )
2025-12-21 10:17:35 +01:00
Sylvestre Ledru
ac487dee94
Consolidate legacy argument parsing for head/tail
2025-12-21 10:04:09 +01:00
David
1fca82965d
dd: should terminate with error if skip argument is too large ( #7275 )
...
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
CheckScripts / ShellScript/Check (push) Has been cancelled
CheckScripts / ShellScript/Format (push) Has been cancelled
fixed clippy warning
2025-12-20 19:04:12 +01:00
oech3
2081e8a4dc
build-gnu.sh: Don't force-enable tests ( #9744 )
...
Co-authored-by: oech3 <>
2025-12-20 18:18:50 +01:00
Daniel Hofstetter
ebaae2e2d5
Merge pull request #9726 from ChrisDryden/env-non-utf8
...
env: preserve non-UTF-8 environment variables and remove unwrap
2025-12-20 16:38:45 +01:00
Dorian Peron
34c41dfc6b
checksum: drop "text" checksum computation on windows
2025-12-20 15:38:04 +01:00
Dorian Péron
4401eb1205
Merge pull request #9739 from oech3/patch-1
...
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
CheckScripts / ShellScript/Check (push) Waiting to run
CheckScripts / ShellScript/Format (push) Waiting to run
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
GnuTests.yml: Fix caches
2025-12-20 13:45:44 +01:00
Sylvestre Ledru
2e3a1adb25
shred: use RefCell to eliminate mut from random source handling
2025-12-20 11:23:53 +01:00
oech3
ca93f678f0
GnuTests.yml: Fix caches
2025-12-20 19:19:34 +09:00
Sylvestre Ledru
ceb2551250
shred: remove the extension section
2025-12-20 11:18:31 +01:00
Sylvestre Ledru
dd21d7f6dd
shred: ensure deterministic pass sequence compatibility with reference implementation
...
should fix tests/shred/shred-passes.sh
2025-12-20 11:18:28 +01:00
oech3
ef496b697a
build-gnu.sh: Move {ch,run}con tests to SELinux VM to avoid wrong result by false symlinks ( #9607 )
2025-12-20 11:10:43 +01:00
oech3
c53895a25e
why-error.md: Cleanup ( #9738 )
2025-12-20 11:07:40 +01:00
oech3
33e803665a
run-gnu-test.sh: Fix nproc broken by cache ( #9735 )
2025-12-20 10:41:57 +01:00
mattsu
ccd4bbdc8f
fix(sort): GNU sort-continue.sh test ( #9107 )
...
* feat: dynamically adjust merge batch size based on file descriptor limits
- Add `effective_merge_batch_size()` function to calculate batch size considering fd soft limit, with minimums and safety margins.
- Generalize fd limit handling from Linux-only to Unix systems using `fd_soft_limit()`.
- Update merge logic to use dynamic batch size instead of fixed `settings.merge_batch_size` to prevent fd exhaustion.
* fix(sort): update rlimit fetching to use fd_soft_limit with error handling
Replace direct call to get_rlimit()? with fd_soft_limit(), adding a check for None value to return a usage error if rlimit cannot be fetched. This improves robustness on Linux by ensuring proper error handling when retrieving the file descriptor soft limit.
* refactor(sort): restrict nix::libc and fd_soft_limit to Linux
Update conditional compilation attributes from #[cfg(unix)] to #[cfg(target_os = "linux")]
for the nix::libc import and fd_soft_limit function implementations, ensuring these
features are only enabled on Linux systems to improve portability and avoid issues
on other Unix-like platforms.
* refactor: improve thread management and replace unsafe libc calls
Replace unsafe libc::getrlimit calls in fd_soft_limit with safe nix crate usage.
Update Rayon thread configuration to use ThreadPoolBuilder instead of environment variables for better control.
Add documentation comment to effective_merge_batch_size function for clarity.
* refactor(linux): improve error handling in fd_soft_limit function
Extract the rlimit fetching logic into a separate `get_rlimit` function that returns `UResult<usize>` and properly handles errors with `UUsageError`, instead of silently returning `None` on failure or infinity. This provides better error reporting for resource limit issues on Linux platforms.
* refactor(sort): reorder imports in get_rlimit for consistency
Reordered the nix::sys::resource imports to group constants first (RLIM_INFINITY), then types (Resource), and finally functions (getrlimit), improving code readability and adhering to import style guidelines.
2025-12-20 09:35:53 +01:00
Daniel Hofstetter
1044809bdf
Merge pull request #9730 from uutils/renovate/crc-fast-1.x-lockfile
...
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
CheckScripts / ShellScript/Check (push) Waiting to run
CheckScripts / ShellScript/Format (push) Waiting to run
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Has been cancelled
chore(deps): update rust crate crc-fast to v1.8.2
2025-12-20 07:15:46 +01:00
Daniel Hofstetter
dba7c4a6da
Merge pull request #9731 from uutils/renovate/zip-7.x
...
chore(deps): update rust crate zip to v7
2025-12-20 07:11:44 +01:00
renovate[bot]
86b0695908
chore(deps): update rust crate zip to v7
2025-12-20 02:42:52 +00:00
renovate[bot]
07650cb713
chore(deps): update rust crate crc-fast to v1.8.2
2025-12-19 23:23:34 +00:00
oech3
f72130e9d8
GnuTests: Caches for faster configure and skipping make ( #9627 )
2025-12-20 00:21:39 +01:00
mattsu
3de941179a
base(nc|32|64): Optimize performances reduction memset ( #9632 )
...
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
CheckScripts / ShellScript/Check (push) Waiting to run
CheckScripts / ShellScript/Format (push) Waiting to run
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
* perf(base32): optimize read buffer allocation in fast encode/decode
Refactor buffer creation from zero-initialized vectors to pre-allocated Vec with_capacity,
using unsafe set_len to avoid unnecessary zeroing, improving performance without affecting
correctness, as only initialized bytes from Read::read are accessed.
* refactor: use MaybeUninit for safer buffer handling in base32 encode/decode
Replaced manual unsafe `set_len` calls and direct reads into uninitialized vectors with `MaybeUninit::slice_assume_init_mut` to prevent potential memory safety issues and improve code reliability in `fast_encode` and `fast_decode` modules. Added buffer clearing to ensure proper reuse.
* refactor(base32): replace MaybeUninit::slice_assume_init_mut with slice::from_raw_parts_mut
Replace unsafe usage of `MaybeUninit::slice_assume_init_mut` with `slice::from_raw_parts_mut` in the fast_encode and fast_decode modules for reading data into the spare capacity of buffers. This change maintains safety guarantees through updated comments while potentially improving code clarity and performance by avoiding MaybeUninit initialization assumptions. The modification ensures the buffer's uninitialized tail is correctly handled as raw bytes during I/O operations.
* refactor(base32): reorder std imports in base_common.rs for consistency
Moved the `slice` import from after `collections::VecDeque` to after `num::NonZeroUsize` to better align with the module's import grouping style.
* refactor(base32): remove unsafe buffer handling in encode/decode
Replace unsafe spare_capacity_mut and from_raw_parts_mut usage with safe Vec initialization and direct read calls in fast_encode and fast_decode. This eliminates potential safety risks while preserving buffer functionality.
* perf(base32): optimize input handling by switching to BufRead for efficient buffering
Switch from unbuffered Read to BufRead in get_input, handle_input, and fast_encode_stream functions. This reduces syscalls by leveraging buffered reads, improving performance for base32 encoding/decoding operations. Refactor fast_encode_stream to use fill_buf() and manage leftover buffers more efficiently.
2025-12-19 22:25:50 +01:00
Sylvestre Ledru
9212ce2d75
Merge pull request #9652 from oech3/gnu-tb
...
GnuTests: Split online process to a script
2025-12-19 22:20:07 +01:00
Christopher Dryden
5d4abd88e9
env: preserve non-UTF-8 environment variables
2025-12-19 16:09:57 -05:00
Sylvestre Ledru
645b1058a3
Merge pull request #9720 from sylvestre/locale-date
...
locale.rs: move more code outside of the unsafe block
2025-12-19 22:09:01 +01:00
Jean-Christian-Cirstea
fe97933313
truncate: eliminate duplicate stat() syscall ( #9527 )
2025-12-19 22:01:01 +01:00