Commit Graph
20189 Commits
Author SHA1 Message Date
Sylvestre Ledru 96bc576dbd ci: install a WASI sysroot so expr builds for wasm (#13799) 2026-08-14 09:08:28 +02:00
Sylvestre Ledru 94be6a3fe9 wasm: also build with expr 2026-08-08 00:21:19 +02:00
Sylvestre Ledru ec7e986c69 Remove an artifact file 2026-08-08 00:20:22 +02:00
Anthony DePasquale 92e897e1f6 tests/tail: ignore expected stdin broken pipe 2026-08-08 00:16:53 +02:00
Anthony DePasquale 2f2b947a37 tests/head: ignore expected stdin broken pipe 2026-08-08 00:16:53 +02:00
Anthony DePasquale d0ed5389f8 wasi: remove ProcessChecker 2026-08-08 00:16:53 +02:00
Anthony DePasquale cf748f73c9 tests: update WASI comm order-check expectations 2026-08-08 00:16:53 +02:00
Anthony DePasquale 2d5bb0f69b wasi: clean up core platform abstractions 2026-08-08 00:16:53 +02:00
MuntasirSZN c33da236f3 pr: make Ok() and Err() branches linear
Signed-off-by: MuntasirSZN <muntasir.joypurhat@gmail.com>
2026-08-07 18:15:16 +02:00
MuntasirSZN 997dda2b76 pr: omit page padding and separators when headers are disabled
With -t/-T or a page length too short for headers, GNU pr does not pad
the final page or emit page separators (extremities=false in pr.c). This
fixes output like 'pr -t -n70000' now matching GNU byte for byte.
2026-08-07 18:15:16 +02:00
MuntasirSZN 46c98f39be pr: fix for 32 bit overflow 2026-08-07 18:15:16 +02:00
MuntasirSZN 8e77fc2e88 pr: fix overflow issues
Fixes #12996
Fixes #13735
Fixes #13734
2026-08-07 18:15:16 +02:00
oech3 f8b4340508 mkfifo: use std::io::Result, remove manual conversion 2026-08-07 17:21:08 +02:00
0Whisperos 371b24acdf od: avoid panic on large ASCII dump widths 2026-08-07 14:45:39 +02:00
oech3 c98a5dcfad fetch-gnu.sh: remove unnecessary 2 spaces (#13792) 2026-08-07 13:20:32 +02:00
oech3 3f38b068ac simplify return None 2026-08-07 12:49:08 +02:00
Devel c6da698f26 ln: swap src & dst in test_hard_logical_dir_fail 2026-08-07 12:41:19 +02:00
Devel cdd6d325a5 ln: swap dest & source in ln-failed-to-create-hard-link 2026-08-07 12:41:19 +02:00
MsfPablo cedb4cef99 uucore: fix parse_size overflow on a large % size (#13742)
* uucore: fix parse_size overflow on a large `%` size

The `%` (percent-of-physical-memory) branch of `Parser::parse` computed
`(number / 100) * total` as an unchecked `u128` multiply. A percentage
that fits in a `u128` but whose product with the total physical memory
does not would overflow, panicking with "attempt to multiply with
overflow" under `-C overflow-checks` (exit 134) instead of reporting a
parse error:

    $ du --block-size=9223372036854775808000000000000% /tmp
    thread 'main' panicked at parse_size.rs:258:33:
    attempt to multiply with overflow

Because `parse_size` is shared code, the panic was reachable from every
util that accepts a size: du, sort, df, ls, split, stdbuf, od, shred,
dd, head and tail.

Use `checked_mul` and return `ParseSizeError::SizeTooBig` on overflow,
matching how the non-percent path already handles the same condition a
few lines below. Callers therefore get the behaviour they already have
for other too-large sizes such as `1Y`: utils that report an error keep
reporting one, and utils using `parse_u64_max`/`parse_u128_max` clamp to
the maximum, as GNU does.

Fixes #13736

* tests(sort): cover percent-size overflow in --buffer-size

Adds an integration test exercising the fix in uucore::parse_size for a

percentage value whose product with total physical memory overflows u128.

The expected behavior is an error rather than a panic or silent wrap.
2026-08-07 11:30:12 +02:00
renovate[bot] 3ca020357d chore(deps): update rust crate clap_complete to v4.6.9 2026-08-07 11:12:15 +02:00
Sylvestre Ledru 8a9f1f1397 uucore: translate symbolic mode parsing errors 2026-08-07 10:24:56 +02:00
Sylvestre Ledru c2715a7bd2 Add AGENTS.md
This isn't a statement for or against AI agents - people are using them
here either way. It is only there to guide them better, so the project
rules (no GNU code, tests required, short PR descriptions, read the docs)
are actually followed.

See https://github.com/uutils/coreutils/blob/main/CONTRIBUTING.md#ai-policy
2026-08-07 10:12:27 +02:00
renovate[bot] 9877627a28 chore(deps): update rust crate clap_mangen to v0.3.2 2026-08-07 09:48:21 +02:00
xtqqczze b5d7bf4467 build(deps): update rust crates 2026-08-06 16:58:19 +02:00
lauchimoon 569b1558c1 nl: continue processing files after error 2026-08-06 16:47:44 +02:00